mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Fix permission on restore
This commit is contained in:
parent
dd57e4cb42
commit
c056f482d0
1 changed files with 6 additions and 0 deletions
|
@ -13,6 +13,7 @@ source ../settings/scripts/_common.sh
|
||||||
domain=$(ynh_app_setting_get $app domain)
|
domain=$(ynh_app_setting_get $app domain)
|
||||||
path=$(ynh_normalize_url_path $(ynh_app_setting_get $app path))
|
path=$(ynh_normalize_url_path $(ynh_app_setting_get $app path))
|
||||||
db_pwd=$(ynh_app_setting_get ${app} mysqlpwd)
|
db_pwd=$(ynh_app_setting_get ${app} mysqlpwd)
|
||||||
|
seafile_data=/home/yunohost.app/seafile-data
|
||||||
|
|
||||||
# Check domain/path availability
|
# Check domain/path availability
|
||||||
ynh_webpath_available $domain $path || ynh_die "$domain/$path is not available, please use an other domain or path."
|
ynh_webpath_available $domain $path || ynh_die "$domain/$path is not available, please use an other domain or path."
|
||||||
|
@ -43,6 +44,11 @@ python $final_path/add_sso_conf.py
|
||||||
|
|
||||||
# Add logrotate
|
# Add logrotate
|
||||||
ynh_use_logrotate $final_path/logs
|
ynh_use_logrotate $final_path/logs
|
||||||
|
ln -s $final_path/logs /var/log/seafile
|
||||||
|
|
||||||
|
# Set permissions to seafile directory
|
||||||
|
chown -R $seafile_user:$seafile_user $final_path
|
||||||
|
chown -R $seafile_user:$seafile_user $seafile_data
|
||||||
|
|
||||||
# Add Seafile to YunoHost's monitored services
|
# Add Seafile to YunoHost's monitored services
|
||||||
yunohost service add seafile-server
|
yunohost service add seafile-server
|
||||||
|
|
Loading…
Reference in a new issue