mirror of
https://github.com/YunoHost-Apps/lstu_ynh.git
synced 2024-09-03 19:36:12 +02:00
commit
2d33783907
4 changed files with 5 additions and 6 deletions
|
@ -6,8 +6,7 @@ After=network.target
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=__APP__
|
||||
Group=__APP__
|
||||
User=www-data
|
||||
RemainAfterExit=yes
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
|
|
@ -199,7 +199,7 @@ fi
|
|||
# Configure owner
|
||||
#=================================================
|
||||
|
||||
chown -R $app:$app "$final_path"
|
||||
chown -R www-data $final_path
|
||||
|
||||
#=================================================
|
||||
# Start lstu
|
||||
|
|
|
@ -91,7 +91,7 @@ ynh_psql_connect_as $db_name $db_pwd $db_name < ./db.sql
|
|||
#=================================================
|
||||
|
||||
# Restore permissions on app files
|
||||
chown -R $app:$app "$final_path"
|
||||
chown -R www-data $final_path
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC RESTORATION
|
||||
|
|
|
@ -153,7 +153,7 @@ ynh_store_file_checksum "${final_path}/lstu.conf"
|
|||
# SECURING FILES AND DIRECTORIES
|
||||
#=================================================
|
||||
|
||||
chown -R $app:$app "$final_path"
|
||||
chown -R www-data $final_path
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
|
@ -189,7 +189,7 @@ yunohost service add $app --log "/var/log/$app.log"
|
|||
# RESTART LSTU
|
||||
#=================================================
|
||||
|
||||
ynh_systemd_action -n $app -a reload-or-restart -l "Reloaded Shortened URLs service." -p "systemd"
|
||||
ynh_systemd_action -n $app -a reload -l "Reloaded Shortened URLs service." -p "systemd"
|
||||
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
|
|
Loading…
Add table
Reference in a new issue