mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Fix migration from old install
This commit is contained in:
parent
a39239a20c
commit
27c3bbc1c3
1 changed files with 2 additions and 0 deletions
|
@ -71,6 +71,8 @@ if [ $final_path == "/var/www/$app" ]; then
|
||||||
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
|
||||||
|
echo '/home/yunohost.app/seafile-data' > /opt/yunohost/seafile/ccnet/seafile.ini
|
||||||
|
mv /opt/yunohost/$app/seafile-data/* /home/yunohost.app/seafile-data/
|
||||||
ln -s $final_path/logs /var/log/seafile
|
ln -s $final_path/logs /var/log/seafile
|
||||||
set_permission
|
set_permission
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue