mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Avoid upgrade crash if data_dir already exist
This commit is contained in:
parent
cf66fcf714
commit
c94e9d1f1a
1 changed files with 3 additions and 0 deletions
|
@ -70,6 +70,9 @@ if [ $(readlink $install_dir/seafile-data) == '/home/yunohost.app/seafile-data'
|
|||
ln -s $data_dir $install_dir/seafile-data
|
||||
fi
|
||||
if [ -e /home/yunohost.app/seafile-data ]; then
|
||||
if [ -e $data_dir ]; then
|
||||
mv $data_dir $data_dir$(date '+%Y%m%d.%H%M%S')
|
||||
fi
|
||||
mv /home/yunohost.app/seafile-data $data_dir
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue