mirror of
https://github.com/YunoHost-Apps/turtl_ynh.git
synced 2024-09-03 20:26:35 +02:00
Fix
This commit is contained in:
parent
c0ab05e317
commit
9a5d9c0cf3
4 changed files with 4 additions and 8 deletions
|
@ -2,7 +2,7 @@
|
||||||
server:
|
server:
|
||||||
# Per default, turtl will listen on all IP addresses
|
# Per default, turtl will listen on all IP addresses
|
||||||
# You can choose the IP it will use with this parameter
|
# You can choose the IP it will use with this parameter
|
||||||
host: _IP_SERVER__
|
host: __PUBLIC_IP4__
|
||||||
port: __PORT__
|
port: __PORT__
|
||||||
|
|
||||||
db:
|
db:
|
||||||
|
|
|
@ -9,10 +9,10 @@ User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
WorkingDirectory=__FINALPATH__/
|
WorkingDirectory=__FINALPATH__/
|
||||||
Environment="PATH=__ENV_PATH__"
|
Environment="PATH=__ENV_PATH__"
|
||||||
ExecStart=__YNH_NODE__ __FINALPATH__/entrypoint.sh
|
ExecStart=__YNH_NODE__ __FINALPATH__/server.js
|
||||||
StandardOutput=syslog
|
StandardOutput=syslog
|
||||||
StandardError=syslog
|
StandardError=syslog
|
||||||
SyslogIdentifier=turtl
|
SyslogIdentifier=__APP__
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
StartLimitInterval=900
|
StartLimitInterval=900
|
||||||
|
|
|
@ -103,7 +103,6 @@ chown $app:$app $final_path/plugins
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
chmod +x $final_path/entrypoint.sh
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
@ -144,7 +143,7 @@ chown -R $app:www-data "$datadir"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
ip_server="$(curl -s ip.yunohost.org)" || true
|
public_ip4="$(curl -s ip.yunohost.org)" || true
|
||||||
ynh_add_config --template="../conf/config.yaml.default" --destination="$final_path/config/config.yaml"
|
ynh_add_config --template="../conf/config.yaml.default" --destination="$final_path/config/config.yaml"
|
||||||
|
|
||||||
chmod 400 "$final_path/config/config.yaml"
|
chmod 400 "$final_path/config/config.yaml"
|
||||||
|
|
|
@ -56,9 +56,6 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||||
|
|
||||||
### If nobody installed your app before 4.1,
|
|
||||||
### then you may safely remove these lines
|
|
||||||
|
|
||||||
# Cleaning legacy permissions
|
# Cleaning legacy permissions
|
||||||
if ynh_legacy_permissions_exists; then
|
if ynh_legacy_permissions_exists; then
|
||||||
ynh_legacy_permissions_delete_all
|
ynh_legacy_permissions_delete_all
|
||||||
|
|
Loading…
Reference in a new issue