1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/luckysheet_ynh.git synced 2024-09-03 19:36:21 +02:00
This commit is contained in:
ericgaspar 2021-05-27 13:51:36 +02:00
parent d689c7aed1
commit 8b43b215a1
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 10 additions and 6 deletions

View file

@ -12,8 +12,8 @@ Environment="PATH=__ENV_PATH__"
Environment="NODE_ENV=production" Environment="NODE_ENV=production"
ExecStart=__YNH_NPM__ run build ExecStart=__YNH_NPM__ run build
Restart=always Restart=always
PrivateTmp=true #PrivateTmp=true
PrivateDevices=true #PrivateDevices=true
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View file

@ -112,8 +112,12 @@ popd || ynh_die
#================================================= #=================================================
# MODIFY A CONFIG FILE # MODIFY A CONFIG FILE
#================================================= #=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
cp ../conf/config.example.js $final_path/src/config.js ynh_add_config --template="../conf/config.example.js" --destination="$final_path/src/config.js"
chmod 400 "$final_path/src/config.js"
chown $app:$app "$final_path/src/config.js"
#================================================= #=================================================
# SETUP SYSTEMD # SETUP SYSTEMD
@ -138,7 +142,7 @@ yunohost service add $app --description="Online spreadsheet like excel" --log="/
ynh_script_progression --message="Starting a systemd service..." --weight=2 ynh_script_progression --message="Starting a systemd service..." --weight=2
# Start a systemd service # Start a systemd service
ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="Serving files from: dist" ynh_systemd_action --service_name=$app --action=start --log_path=systemd #--line_match="Serving files from: dist"
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT