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