1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gotosocial_ynh.git synced 2024-09-03 19:16:06 +02:00

Update install

This commit is contained in:
Éric Gaspar 2023-10-24 08:54:54 +02:00
parent f2edf885f0
commit acb338adb6

View file

@ -82,12 +82,10 @@ yunohost service add "$app" --description="Gotosocial server" --log="/var/log/$a
#================================================= #=================================================
ynh_script_progression --message="Creating gotosocial admin user..." --weight=1 ynh_script_progression --message="Creating gotosocial admin user..." --weight=1
# using "/var/www/$app" instead of "$install_dir" as a temporary workaround for this bug: pushd $install_dir
# bad_ynh_exec_syntax() false positive: https://github.com/YunoHost/package_linter/issues/123 ynh_exec_warn_less ./gotosocial --config-path "$install_dir/config.yaml" admin account create --username "$admin" --email "$email" --password "$password"
ynh_exec_warn_less ./gotosocial --config-path "$install_dir/config.yaml" admin account promote --username "$admin"
ynh_exec_warn_less /var/www/"$app"/gotosocial --config-path "$install_dir/config.yaml" admin account create --username "$admin" --email "$email" --password "$password" popd
ynh_exec_warn_less /var/www/"$app"/gotosocial --config-path "$install_dir/config.yaml" admin account promote --username "$admin"
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE