mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Improve migration from old package
This commit is contained in:
parent
9bbbc78468
commit
37221c6777
1 changed files with 3 additions and 0 deletions
|
@ -69,6 +69,9 @@ if [ $final_path == "/var/www/$app" ]; then
|
||||||
mv /var/www/$app /opt/yunohost/
|
mv /var/www/$app /opt/yunohost/
|
||||||
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
|
||||||
|
ln -s $final_path/logs /var/log/seafile
|
||||||
|
sleep 2
|
||||||
set_permission
|
set_permission
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue