mirror of
https://github.com/YunoHost-Apps/bonfire_ynh.git
synced 2024-09-03 18:16:01 +02:00
update release & script, and move admin creation before daemon
This commit is contained in:
parent
e977f7111e
commit
6d2c30a7c0
2 changed files with 11 additions and 11 deletions
|
@ -92,14 +92,14 @@ ram.runtime = "500M"
|
||||||
|
|
||||||
[resources.sources.main]
|
[resources.sources.main]
|
||||||
# TODO: multiple architectures
|
# TODO: multiple architectures
|
||||||
url = "https://github.com/bonfire-networks/bonfire-app/releases/download/v0.9.10-beta.61/bonfire-classic-amd64-debian-bullseye.tar.gz"
|
url = "https://github.com/bonfire-networks/bonfire-app/releases/download/v0.9.10-beta.62/bonfire-classic-amd64-debian-bullseye.tar.gz"
|
||||||
sha256 = "8bc36f1c10e63659d0a286d82b5fd38233f545e7100fb03e63db4b0de7b6fe8d"
|
sha256 = "8137473f6db89101a0d841f0aad5a243853c611c9ccf80433e682b0217f87f73"
|
||||||
|
|
||||||
autoupdate.strategy = "latest_github_release"
|
autoupdate.strategy = "latest_github_release"
|
||||||
|
|
||||||
[resources.sources.deps_install]
|
[resources.sources.deps_install]
|
||||||
url = "https://github.com/bonfire-networks/bonfire-app/raw/a57ad00dd18bfe558fc398938f19c92b48c60ff6/deps-debian.sh"
|
url = "https://github.com/bonfire-networks/bonfire-app/raw/v0.9.10-beta.62/deps-debian.sh"
|
||||||
sha256 = "56624dc90719e2182f8116e63d9784079ce47e19892410f37ce5aa3de2a22b57"
|
sha256 = "11c84b345ff6daacd08e156390315186f00d4bef3a4c8e15a8055fca0a4a3dee"
|
||||||
format = "script"
|
format = "script"
|
||||||
rename = "deps-debian.sh"
|
rename = "deps-debian.sh"
|
||||||
extract = false
|
extract = false
|
||||||
|
|
|
@ -88,10 +88,16 @@ cd $install_dir
|
||||||
#ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "WITH_DOCKER=no $ynh_node_load_PATH just mix bonfire.deps.update"
|
#ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "WITH_DOCKER=no $ynh_node_load_PATH just mix bonfire.deps.update"
|
||||||
# ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "WITH_DOCKER=no $ynh_node_load_PATH just rel-build"
|
# ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "WITH_DOCKER=no $ynh_node_load_PATH just rel-build"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# CREATE ADMIN USER
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Creating admin user account..." --weight=1
|
||||||
|
ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "$install_dir/bin/bonfire eval 'Bonfire.Me.make_account_and_user(\"$admin\", \"$(ynh_user_get_info --username=\"$admin\" --key=mail)\", \"$password\")'"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE - Run the release
|
# START SYSTEMD SERVICE - Run the release
|
||||||
#=================================================
|
#=================================================
|
||||||
release_folder="./"
|
release_folder=$install_dir
|
||||||
|
|
||||||
### Not running the migration, they are done on startup anyway
|
### Not running the migration, they are done on startup anyway
|
||||||
#ynh_script_progression --message="Running database migrations..." --weight=1
|
#ynh_script_progression --message="Running database migrations..." --weight=1
|
||||||
|
@ -117,12 +123,6 @@ ynh_script_progression --message="Starting Bonfire daemon service..." --weight=1
|
||||||
# Start a systemd service
|
# Start a systemd service
|
||||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="[info] Running Bonfire.Web.Endpoint"
|
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="[info] Running Bonfire.Web.Endpoint"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# CREATE ADMIN USER
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Creating admin user account..." --weight=1
|
|
||||||
ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "$install_dir/bin/bonfire rpc 'Bonfire.Me.make_account_and_user(\"$admin\", \"$(ynh_user_get_info --username=\"$admin\" --key=mail)\", \"$password\")'"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue