mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Fix seafile_data management
This commit is contained in:
parent
1d08f40f84
commit
5ca79c9d96
1 changed files with 6 additions and 2 deletions
|
@ -70,8 +70,12 @@ 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
|
if ! [ -z "$(ls -A $final_path/seafile_data)" ]; then
|
||||||
mv /opt/yunohost/$app/seafile-data/* /home/yunohost.app/seafile-data/
|
# Data directory empty, so considere that all data are already in /home/yunohost.app/seafile
|
||||||
|
mv /opt/yunohost/$app/seafile-data/* /home/yunohost.app/seafile-data/
|
||||||
|
ynh_secure_remove $final_path/seafile_data
|
||||||
|
ln -s $seafile_data $final_path/seafile_data
|
||||||
|
fi
|
||||||
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