mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-11-23 11:31:35 +01:00
Move all script in script folder
This commit is contained in:
parent
82853f2061
commit
57740d8b4c
@ -87,8 +87,8 @@ _set_permissions
|
|||||||
ynh_systemd_action --service_name="$app" --action=start --log_path="/var/log/$app/gitea.log" --line_match="$systemd_match_start_line"
|
ynh_systemd_action --service_name="$app" --action=start --log_path="/var/log/$app/gitea.log" --line_match="$systemd_match_start_line"
|
||||||
|
|
||||||
# Add ldap config
|
# Add ldap config
|
||||||
ynh_replace_string --match_string=__APP__ --replace_string="$app" --target_file=../conf/login_source.sql
|
ynh_replace_string --match_string=__APP__ --replace_string="$app" --target_file=./login_source.sql
|
||||||
ynh_mysql_connect_as "$db_user" "$db_pwd" "$db_name" < ../conf/login_source.sql
|
ynh_mysql_connect_as "$db_user" "$db_pwd" "$db_name" < ./login_source.sql
|
||||||
|
|
||||||
# Stop the service to restart it just afterwards
|
# Stop the service to restart it just afterwards
|
||||||
ynh_systemd_action --service_name="$app" --action='stop' --log_path="/var/log/$app/gitea.log"
|
ynh_systemd_action --service_name="$app" --action='stop' --log_path="/var/log/$app/gitea.log"
|
||||||
|
@ -100,8 +100,8 @@ ynh_add_config --template=app.ini --destination="$install_dir/custom/conf/app.in
|
|||||||
_set_permissions
|
_set_permissions
|
||||||
|
|
||||||
# Update ldap config
|
# Update ldap config
|
||||||
ynh_replace_string --match_string=__APP__ --replace_string="$app" --target_file=../conf/login_source.sql
|
ynh_replace_string --match_string=__APP__ --replace_string="$app" --target_file=./login_source.sql
|
||||||
ynh_mysql_connect_as "$db_user" "$db_pwd" "$db_name" < ../conf/login_source.sql
|
ynh_mysql_connect_as "$db_user" "$db_pwd" "$db_name" < ./login_source.sql
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REAPPLY SYSTEM CONFIGURATIONS
|
# REAPPLY SYSTEM CONFIGURATIONS
|
||||||
|
Loading…
Reference in New Issue
Block a user