fix: move forgejo api user creation after installing forgejo
This commit is contained in:
parent
7d2357aa64
commit
26f79227e3
1 changed files with 6 additions and 7 deletions
|
@ -48,13 +48,6 @@ popd
|
||||||
# Update login source synchronization flag (1.19.3-0~ynh3)
|
# Update login source synchronization flag (1.19.3-0~ynh3)
|
||||||
enable_login_source_sync
|
enable_login_source_sync
|
||||||
|
|
||||||
if [ -z ${forgejo_api_user:-} ]; then
|
|
||||||
create_forgejo_api_user
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Update users login source (1.19.3-0~ynh3)
|
|
||||||
set_users_login_source
|
|
||||||
|
|
||||||
# forgejo home directory has changed (yunohost packaging v2)
|
# forgejo home directory has changed (yunohost packaging v2)
|
||||||
# .ssh directory should move from old home dir (data_dir) to new one
|
# .ssh directory should move from old home dir (data_dir) to new one
|
||||||
# (/var/www/$app is the default value for home in resources.system_user)
|
# (/var/www/$app is the default value for home in resources.system_user)
|
||||||
|
@ -155,6 +148,12 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$ap
|
||||||
#=================================================
|
#=================================================
|
||||||
# Synchronize users (backward compatibility 1.19.3-0~ynh3)
|
# Synchronize users (backward compatibility 1.19.3-0~ynh3)
|
||||||
#=================================================
|
#=================================================
|
||||||
|
if [ -z ${forgejo_api_user:-} ]; then
|
||||||
|
create_forgejo_api_user
|
||||||
|
fi
|
||||||
|
|
||||||
|
set_users_login_source
|
||||||
|
|
||||||
synchronize_users
|
synchronize_users
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue