mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Fix migration from old package
This commit is contained in:
parent
37221c6777
commit
cb4f005148
1 changed files with 2 additions and 2 deletions
|
@ -66,12 +66,12 @@ fi
|
||||||
|
|
||||||
if [ $final_path == "/var/www/$app" ]; then
|
if [ $final_path == "/var/www/$app" ]; then
|
||||||
final_path="/opt/yunohost/$app"
|
final_path="/opt/yunohost/$app"
|
||||||
mv /var/www/$app /opt/yunohost/
|
mkdir -p /opt/yunohost
|
||||||
|
mv /var/www/$app /opt/yunohost/$app
|
||||||
ynh_system_user_create --username $seafile_user --home_dir $final_path
|
ynh_system_user_create --username $seafile_user --home_dir $final_path
|
||||||
ynh_app_setting_set --app $app --key final_path --value $final_path
|
ynh_app_setting_set --app $app --key final_path --value $final_path
|
||||||
test -e /var/log/seafile && rm /var/log/$app
|
test -e /var/log/seafile && rm /var/log/$app
|
||||||
ln -s $final_path/logs /var/log/seafile
|
ln -s $final_path/logs /var/log/seafile
|
||||||
sleep 2
|
|
||||||
set_permission
|
set_permission
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue