1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yunorunner_ynh.git synced 2024-09-03 20:36:13 +02:00

Run the upstream finish_install script

This commit is contained in:
tituspijean 2023-04-07 00:15:58 +02:00
parent 5f77fcc122
commit 33ef3ea873
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
3 changed files with 38 additions and 0 deletions

View file

@ -37,6 +37,24 @@
"name": "path", "name": "path",
"type": "path", "type": "path",
"default": "/ci" "default": "/ci"
},
{
"name": "",
"type": "select",
"choices": ["auto", "manual"]
"default": "manual"
"ask": {
"en": "Should the jobs be automatically run from the apps list?"
}
},
{
"name": "cluster",
"type": "select",
"choices": ["cluster", "no"]
"default": "no"
"ask": {
"en": "Should an LXD cluster be created with this server as first node?"
}
} }
] ]
} }

View file

@ -25,6 +25,8 @@ ynh_abort_if_errors
domain=$YNH_APP_ARG_DOMAIN domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH path_url=$YNH_APP_ARG_PATH
mode=$YNH_APP_ARG_MODE
cluster=$YNH_APP_ARG_CLUSTER
app=$YNH_APP_INSTANCE_NAME app=$YNH_APP_INSTANCE_NAME
@ -126,6 +128,15 @@ ynh_add_config --template="yunorunner.config.py" --destination="$final_path/conf
chmod 400 "$final_path/config.py" chmod 400 "$final_path/config.py"
chown $app:$app "$final_path/config.py" chown $app:$app "$final_path/config.py"
#=================================================
# FINISH INSTALL
#=================================================
ynh_script_progression --message="Run Yunorunner's finish_install script..."
pushd "$final_path"
./finish_install.sh $mode $cluster
popd
#================================================= #=================================================
# SETUP SYSTEMD # SETUP SYSTEMD
#================================================= #=================================================

View file

@ -151,6 +151,15 @@ pushd $final_path
venv/bin/pip install -r requirements-frozen.txt venv/bin/pip install -r requirements-frozen.txt
popd popd
#=================================================
# FINISH INSTALL
#=================================================
ynh_script_progression --message="Run Yunorunner's finish_install script..."
pushd "$final_path"
./finish_install.sh
popd
#================================================= #=================================================
# UPDATE A CONFIG FILE # UPDATE A CONFIG FILE
#================================================= #=================================================