Fix migration from old package

This commit is contained in:
Josué Tille 2019-11-03 17:19:25 +01:00
parent 37221c6777
commit cb4f005148
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -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