1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ulogger_ynh.git synced 2024-10-01 13:34:45 +02:00

Update install

This commit is contained in:
ericgaspar 2021-02-07 21:09:53 +01:00
parent c82fd5c353
commit ebf5575f1c
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -103,7 +103,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
# SPECIFIC SETUP # SPECIFIC SETUP
#================================================= #=================================================
# Set right permissions for curl install # Set right permissions for cURL install
chown -R $app: $final_path chown -R $app: $final_path
#================================================= #=================================================
@ -115,7 +115,7 @@ cp "../conf/config.php" "$final_path/config.php"
ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="$final_path/config.php" ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="$final_path/config.php"
ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_user" --target_file="$final_path/config.php" ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_user" --target_file="$final_path/config.php"
ynh_replace_string "^\$enabled = false;" "\$enabled = true;" "$final_path/scripts/setup.php" ynh_replace_string --match_string="\$enabled = false;" --replace_string="\$enabled = true;" --target_file="$final_path/scripts/setup.php"
admin_pwd=$(openssl passwd -1 -salt xyz $password) admin_pwd=$(openssl passwd -1 -salt xyz $password)