Improve migration from old package

This commit is contained in:
Josué Tille 2019-11-03 12:43:58 +01:00
parent 9bbbc78468
commit 37221c6777
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -69,6 +69,9 @@ if [ $final_path == "/var/www/$app" ]; then
mv /var/www/$app /opt/yunohost/
ynh_system_user_create --username $seafile_user --home_dir $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
fi