1
0
Fork 0
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:
Kayou 2019-03-03 20:45:02 +01:00
parent ccdf102442
commit ea879356a5
No known key found for this signature in database
GPG key ID: 823A2CBE071D3126
4 changed files with 5 additions and 4 deletions

View file

@ -6,7 +6,8 @@ After=network.target
[Service] [Service]
Type=simple Type=simple
User=www-data User=__APP__
Group=__APP__
RemainAfterExit=yes RemainAfterExit=yes
Restart=always Restart=always
RestartSec=10 RestartSec=10

View file

@ -195,7 +195,7 @@ fi
# Configure owner # Configure owner
#================================================= #=================================================
chown -R www-data $final_path chown -R $app:$app "$final_path"
#================================================= #=================================================
# Start lstu # Start lstu

View file

@ -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 www-data $final_path chown -R $app:$app "$final_path"
#================================================= #=================================================
# SPECIFIC RESTORATION # SPECIFIC RESTORATION

View file

@ -153,7 +153,7 @@ ynh_store_file_checksum "${final_path}/lstu.conf"
# SECURING FILES AND DIRECTORIES # SECURING FILES AND DIRECTORIES
#================================================= #=================================================
chown -R www-data $final_path chown -R $app:$app "$final_path"
#================================================= #=================================================
# SETUP SYSTEMD # SETUP SYSTEMD