1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/castopod_ynh.git synced 2024-09-03 18:16:14 +02:00
This commit is contained in:
ericgaspar 2021-02-11 16:01:13 +01:00
parent 9f14ddd302
commit 83e5195fc6
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 7 additions and 13 deletions

View file

@ -11,16 +11,16 @@
#--------------------------------------------------------------------
# Instance configuration
app.baseURL="__DOMAIN__"
app.mediaBaseURL="__DOMAIN__"
app.baseURL="https://__DOMAIN__"
app.mediaBaseURL="https://__DOMAIN__"
app.adminGateway="cp-admin"
app.authGateway="cp-auth"
# Database configuration
database.default.hostname="localhost"
database.default.database="__DBNAME__"
database.default.username="__DBNAME__"
database.default.password="__DBPWD__"
database.default.database="__DB_NAME__"
database.default.username="__DB_NAME__"
database.default.password="__DB_PWD__"
database.default.DBPrefix="cp_"
# Cache configuration (advanced)

View file

@ -97,13 +97,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#=================================================
ynh_script_progression --message="Configuring Castopod..." --weight=1
cp ../conf/.env.example "$final_path/.env"
# Change variables in Castopod configuration
ynh_replace_string --match_string="__DBNAME__" --replace_string="$db_name" --target_file="$final_path/.env"
ynh_replace_string --match_string="__DBPWD__" --replace_string="$db_pwd" --target_file="$final_path/.env"
ynh_replace_string --match_string="__DOMAIN__" --replace_string="https://$domain" --target_file="$final_path/.env"
ynh_replace_string --match_string="__DOMAINPATH__" --replace_string="https://$domain$path_url" --target_file="$final_path/.env"
ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env"
#=================================================
# STORE THE CONFIG FILE CHECKSUM
@ -125,7 +119,7 @@ chmod -R 755 $final_path
#=================================================
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Configuring SSOwat..." --weight=10
ynh_script_progression --message="Configuring permissions..." --weight=10
# Make app public if necessary or protect it
if [ $is_public -eq 1 ]