mirror of
https://github.com/YunoHost-Apps/framagames_ynh.git
synced 2024-09-03 18:36:28 +02:00
Update on check final_path
This commit is contained in:
parent
bd6536ad94
commit
3d2347a536
1 changed files with 2 additions and 3 deletions
|
@ -70,8 +70,9 @@ CHECK_DOMAINPATH () { # Vérifie la disponibilité du path et du domaine.
|
|||
CHECK_DOMAINPATH
|
||||
|
||||
# Check destination folder is not used already
|
||||
final_path=/var/www/$app
|
||||
|
||||
CHECK_FINALPATH () { # Vérifie que le dossier de destination n'est pas déjà utilisé.
|
||||
final_path=/var/www/$app
|
||||
if [ -e "$final_path" ]
|
||||
then
|
||||
echo "This path already contains a folder" >&2
|
||||
|
@ -81,8 +82,6 @@ CHECK_FINALPATH () { # Vérifie que le dossier de destination n'est pas déj
|
|||
|
||||
CHECK_FINALPATH
|
||||
|
||||
final_path=/var/www/$app
|
||||
|
||||
# Define variables and Save app settings
|
||||
ynh_app_setting_set "$app" domain "$domain"
|
||||
#ynh_app_setting_set "$app" path "$path"
|
||||
|
|
Loading…
Reference in a new issue