Corregido fallo al crear los enlaces para las carpetas agregadas

This commit is contained in:
q3aql 2018-06-08 16:32:02 +02:00 committed by GitHub
parent 465eab2a6f
commit 7e1305fc3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,17 +178,17 @@ function addNewFolder() {
if [ ${output} -ne 0 ] ; then if [ ${output} -ne 0 ] ; then
zenity --title "easy-samba ${VERSION} (${M_DATE})" --error --text "Error: Fallo al agregar la carpeta '${folder}'" zenity --title "easy-samba ${VERSION} (${M_DATE})" --error --text "Error: Fallo al agregar la carpeta '${folder}'"
else else
echo "[${endFolder}]" >> ${sambaConfig} echo "[${endFolder}]" >> ${sambaConfig}
echo "# Folder to ${linuxSambaFolder}/${endFolder} # 00bc00" >> ${sambaConfig} echo "# Folder to ${linuxSambaFolder}/${endFolder} # 00bc00" >> ${sambaConfig}
echo "path = ${linuxSambaFolder}/${endFolder}" >> ${sambaConfig} echo "path = ${linuxSambaFolder}/${endFolder}" >> ${sambaConfig}
echo "comment = Folder by easy-samba ${VERSION} (${M_DATE})" >> ${sambaConfig} echo "comment = Folder by easy-samba ${VERSION} (${M_DATE})" >> ${sambaConfig}
echo "browseable = yes" >> ${sambaConfig} echo "browseable = yes" >> ${sambaConfig}
echo "writeable = yes" >> ${sambaConfig} echo "writeable = yes" >> ${sambaConfig}
echo "read only = no" >> ${sambaConfig} echo "read only = no" >> ${sambaConfig}
echo "guest ok = yes" >> ${sambaConfig} echo "guest ok = yes" >> ${sambaConfig}
echo "" >> ${sambaConfig} echo "" >> ${sambaConfig}
zenity --title "easy-samba ${VERSION} (${M_DATE})" --info --text "Carpeta '${folder}' agregada con exito!" zenity --title "easy-samba ${VERSION} (${M_DATE})" --info --text "Carpeta '${folder}' agregada con exito!"
createFolderLink ${folder} createFolderLink ${endFolder}
fi fi
fi fi
else else