mirror of
https://github.com/YunoHost-Apps/thelounge_ynh.git
synced 2024-09-03 20:35:54 +02:00
Fix
This commit is contained in:
parent
2327f13e66
commit
1907bb4f59
4 changed files with 25 additions and 22 deletions
|
@ -6,16 +6,20 @@ After=network.target
|
||||||
Type=simple
|
Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
WorkingDirectory=__FINALPATH__/
|
#WorkingDirectory=__FINALPATH__/
|
||||||
Environment="PATH=__ENV_PATH__"
|
#Environment="PATH=__ENV_PATH__"
|
||||||
Environment="THELOUNGE_HOME=/home/yunohost.app/__APP__/"
|
#Environment="THELOUNGE_HOME=/home/yunohost.app/__APP__/"
|
||||||
Environment="NODE_ENV=production"
|
#Environment="NODE_ENV=production"
|
||||||
ExecStart=/usr/bin/yarn start
|
ExecStart=/usr/bin/yarn start
|
||||||
#ExecStart=__FINALPATH__/ start
|
ProtectSystem=yes
|
||||||
Restart=on-failure
|
ProtectHome=yes
|
||||||
RestartSec=5
|
NoNewPrivileges=yes
|
||||||
StartLimitInterval=60s
|
PrivateTmp=yes
|
||||||
StartLimitBurst=3
|
|
||||||
|
#Restart=on-failure
|
||||||
|
#RestartSec=5
|
||||||
|
#StartLimitInterval=60s
|
||||||
|
#StartLimitBurst=3
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -31,8 +31,7 @@
|
||||||
},
|
},
|
||||||
"multi_instance": false,
|
"multi_instance": false,
|
||||||
"services": [
|
"services": [
|
||||||
"nginx",
|
"nginx"
|
||||||
"mysql"
|
|
||||||
],
|
],
|
||||||
"arguments": {
|
"arguments": {
|
||||||
"install" : [
|
"install" : [
|
||||||
|
|
|
@ -104,16 +104,16 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE DATA DIRECTORY
|
# CREATE DATA DIRECTORY
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Creating a data directory..."
|
# ynh_script_progression --message="Creating a data directory..."
|
||||||
|
|
||||||
datadir=/home/yunohost.app/$app
|
# datadir=/home/yunohost.app/$app
|
||||||
ynh_app_setting_set --app=$app --key=datadir --value=$datadir
|
# ynh_app_setting_set --app=$app --key=datadir --value=$datadir
|
||||||
|
|
||||||
mkdir -p $datadir
|
# mkdir -p $datadir
|
||||||
|
|
||||||
chmod 750 "$datadir"
|
# chmod 750 "$datadir"
|
||||||
chmod -R o-rwx "$datadir"
|
# chmod -R o-rwx "$datadir"
|
||||||
chown -R $app:www-data "$datadir"
|
# chown -R $app:www-data "$datadir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC SETUP
|
# SPECIFIC SETUP
|
||||||
|
|
Loading…
Reference in a new issue