diff --git a/scripts/install b/scripts/install index c817b9d..f8206d2 100644 --- a/scripts/install +++ b/scripts/install @@ -39,7 +39,7 @@ final_path=/var/www/$app test ! -e "$final_path" || ynh_die "This path already contains a folder" # Register (book) web path -ynh_webpath_register --app="$app" --domain="$domain" --path_url="$path_url" +ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url #================================================= # FIND AND OPEN A PORT @@ -150,7 +150,7 @@ ynh_script_progression --message="Configuring system user..." --weight=3 # Create a system user ynh_system_user_create --username=$app --home_dir=$final_path -chown -R "$app":"$app" "$final_path" +chown -R $app:$app $final_path #================================================= # SETUP LOGROTATE diff --git a/scripts/restore b/scripts/restore index 8a2927d..dc72ab7 100644 --- a/scripts/restore +++ b/scripts/restore @@ -72,7 +72,7 @@ ynh_system_user_create --username=$app #================================================= # Restore permissions on app files -chown -R "$app":"$app" "$final_path" +chown -R $app:$app $final_path #================================================= # SPECIFIC RESTORATION diff --git a/scripts/upgrade b/scripts/upgrade index 25f830d..120b041 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -178,7 +178,7 @@ yunohost service add $app --description "Collaborative Markdown notes" --log="/v #================================================= # Set permissions on app files -chown -R "$app":"$app" "$final_path" +chown -R $app:$app $final_path #================================================= # START SYSTEMD SERVICE