mirror of
https://github.com/YunoHost-Apps/lstu_ynh.git
synced 2024-09-03 19:36:12 +02:00
User is used instead of www-data
This commit is contained in:
parent
ccdf102442
commit
ea879356a5
4 changed files with 5 additions and 4 deletions
|
@ -6,7 +6,8 @@ After=network.target
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=www-data
|
||||
User=__APP__
|
||||
Group=__APP__
|
||||
RemainAfterExit=yes
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
|
|
@ -195,7 +195,7 @@ fi
|
|||
# Configure owner
|
||||
#=================================================
|
||||
|
||||
chown -R www-data $final_path
|
||||
chown -R $app:$app "$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 www-data $final_path
|
||||
chown -R $app:$app "$final_path"
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC RESTORATION
|
||||
|
|
|
@ -153,7 +153,7 @@ ynh_store_file_checksum "${final_path}/lstu.conf"
|
|||
# SECURING FILES AND DIRECTORIES
|
||||
#=================================================
|
||||
|
||||
chown -R www-data $final_path
|
||||
chown -R $app:$app "$final_path"
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
|
|
Loading…
Reference in a new issue