mirror of
https://github.com/YunoHost-Apps/ffsync_ynh.git
synced 2024-09-03 18:26:38 +02:00
Fix final path
This commit is contained in:
parent
c46400ee29
commit
d919dcc49a
2 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ app=$YNH_APP_INSTANCE_NAME
|
|||
#=================================================
|
||||
|
||||
# Check destination directory
|
||||
final_path="/var/www/$app"
|
||||
final_path="/opt/yunohost/$app"
|
||||
test ! -e "$final_path" || ynh_die "This path already contains a folder"
|
||||
|
||||
# Normalize the url path syntax
|
||||
|
|
|
@ -43,7 +43,7 @@ fi
|
|||
|
||||
# If final_path doesn't exist, create it
|
||||
if [ -z "$final_path" ]; then
|
||||
final_path=/var/www/$app
|
||||
final_path=/opt/yunohost/$app
|
||||
ynh_app_setting_set "$app" final_path "$final_path"
|
||||
fi
|
||||
|
||||
|
@ -55,7 +55,7 @@ if [ -z "$path_url" ]; then
|
|||
fi
|
||||
|
||||
# Detect old installation style
|
||||
if [ -e /opt/yunohost/ffsync ]; then
|
||||
if [ -e /etc/init.d/ffsync ]; then
|
||||
service ffsync stop
|
||||
update-rc.d -f ffsync remove
|
||||
|
||||
|
|
Loading…
Reference in a new issue