mirror of
https://github.com/YunoHost-Apps/yunorunner_ynh.git
synced 2024-09-03 20:36:13 +02:00
Use --port
This commit is contained in:
parent
d7265028c5
commit
8796cf26e6
4 changed files with 10 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
SOURCE_URL=https://github.com/YunoHost/yunorunner/archive/7ce0982ca5bdb94f5fc955ff1612ae82ced4f2d6.zip
|
||||
SOURCE_SUM=697a7946aaf7d4f5925870a435cb7fbd
|
||||
SOURCE_URL=https://github.com/YunoHost/yunorunner/archive/6aa293b3cd9b057ef9b8fd180a1d459ad2d45eab.zip
|
||||
SOURCE_SUM=3b04e726d84184e934457dc9add35ac4
|
||||
SOURCE_SUM_PRG=md5sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
||||
|
|
|
@ -4,10 +4,11 @@ After=network.target
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
User=__APP__
|
||||
Group=__APP__
|
||||
WorkingDirectory=__FINALPATH__
|
||||
ExecStart=__FINALPATH__/ve3/bin/python ./run.py /home/CI_package_check/analyseCI.sh
|
||||
ExecStart=__FINALPATH__/ve3/bin/python ./run.py /home/CI_package_check/analyseCI.sh --port __PORT__
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -127,8 +127,9 @@ ynh_add_systemd_config
|
|||
# CHANGE PORT IN YUNORUNNER
|
||||
#=================================================
|
||||
|
||||
ynh_replace_string "localhost:4242" "localhost:$port" "$final_path/ciclic"
|
||||
ynh_replace_string "port=4242" "port=$port" "$final_path/run.py"
|
||||
ynh_replace_string "__PORT__" "$port" "/etc/systemd/system/$app.service"
|
||||
ynh_store_file_checksum "/etc/systemd/system/$app.service"
|
||||
systemctl daemon-reload
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALISATION
|
||||
|
|
|
@ -102,11 +102,9 @@ ynh_add_systemd_config
|
|||
# CHANGE PORT IN YUNORUNNER
|
||||
#=================================================
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
ynh_replace_string "localhost:4242" "localhost:$port" "$final_path/ciclic"
|
||||
ynh_replace_string "port=4242" "port=$port" "$final_path/run.py"
|
||||
fi
|
||||
ynh_replace_string "__PORT__" "$port" "/etc/systemd/system/$app.service"
|
||||
ynh_store_file_checksum "/etc/systemd/system/$app.service"
|
||||
systemctl daemon-reload
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALISATION
|
||||
|
|
Loading…
Reference in a new issue