mirror of
https://github.com/YunoHost-Apps/kiwiirc_ynh.git
synced 2024-09-03 19:35:59 +02:00
fix permission
This commit is contained in:
parent
1a8ce2116b
commit
daa5a67fef
2 changed files with 2 additions and 12 deletions
|
@ -23,11 +23,11 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1
|
|||
|
||||
ynh_add_config --template="config.conf" --destination="$install_dir/config.conf"
|
||||
chmod 400 "$install_dir/config.conf"
|
||||
chown root: "$install_dir/config.conf"
|
||||
|
||||
ynh_add_config --template="client.json" --destination="$install_dir/www/static/client.json"
|
||||
chmod 400 "$install_dir/www/static/client.json"
|
||||
chown root: "$install_dir/www/static/client.json"
|
||||
|
||||
chown -R "$app:www-data" "$install_dir"
|
||||
|
||||
#=================================================
|
||||
# SYSTEM CONFIGURATION
|
||||
|
|
|
@ -25,21 +25,11 @@ ynh_remove_systemd_config
|
|||
# Remove the dedicated nginx config
|
||||
ynh_remove_nginx_config
|
||||
|
||||
#=================================================
|
||||
# REMOVE APP MAIN DIR
|
||||
#=================================================
|
||||
ynh_script_progression --message="Removing Kiwiirc..." --weight=6
|
||||
|
||||
dpkg --purge kiwiirc
|
||||
|
||||
#=================================================
|
||||
# REMOVE VARIOUS FILES
|
||||
#=================================================
|
||||
ynh_script_progression --message="Removing various files..." --weight=1
|
||||
|
||||
# Remove a cron file
|
||||
ynh_secure_remove --file="/etc/$app"
|
||||
|
||||
# Remove the log files
|
||||
ynh_secure_remove --file="/var/log/$app.log"
|
||||
|
||||
|
|
Loading…
Reference in a new issue