1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00
This commit is contained in:
ericgaspar 2020-09-18 22:44:58 +02:00
parent ae3c8ec496
commit b1db35550a
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 7 additions and 5 deletions

View file

@ -6,7 +6,7 @@ After=nginx.service network.target local-fs.target postgresql.service
Type=simple
User=__APP__
WorkingDirectory=__FINALPATH__
ExecStart=/usr/bin/php7.3 daemon.php start --url=https://__DOMAIN__ --port=__PORT__
ExecStart=/usr/bin/php7.3 daemon.php start --interface=127.0.0.1 --url=https://__DOMAIN____PATH__/ --port=__PORT__
StandardOutput=syslog
SyslogIdentifier=__APP__
PIDFile=/run/movim.pid

View file

@ -139,8 +139,8 @@ ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --ta
ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$final_path/config/db.inc.php"
## TODO: consider installation in a subpath
ynh_replace_string --match_string="'ws/'" --replace_string="'${path_url%/}/ws/'" \
--target_file="$final_path/public/scripts/movim_websocket.js"
#ynh_replace_string --match_string="'ws/'" --replace_string="'${path_url%/}/ws/'" \
# --target_file="$final_path/public/scripts/movim_websocket.js"
ynh_store_file_checksum --file="$final_path/config/db.inc.php"
@ -160,9 +160,8 @@ ynh_store_file_checksum --file="$final_path/config/db.inc.php"
#=================================================
ynh_script_progression --message="Configuring a systemd service..." --weight=1
#ynh_replace_string --match_string="__URL__" --replace_string="${domain}${path_url}" --target_file=../conf/systemd.service
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file=../conf/systemd.service
#ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file=../conf/systemd.service
ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file=../conf/systemd.service
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file=../conf/systemd.service
ynh_add_systemd_config
@ -223,6 +222,9 @@ ynh_script_progression --message="Starting a systemd service..." --weight=2
# Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" #--line_match="HTTP Server listening"
php"${phpversion}" mud.php db --set
#=================================================
# SETUP SSOWAT
#=================================================