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

Add ynh_add_config

This commit is contained in:
ericgaspar 2021-04-18 11:34:37 +02:00
parent 0994a895fa
commit 2f363dbc25
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 14 additions and 10 deletions

View file

@ -39,8 +39,8 @@ In addition to Piwigo core features, the following are made available with this
#### Supported architectures
* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/piwigo%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/piwigo/)
* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/piwigo%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/piwigo/)
* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/piwigo.svg)](https://ci-apps.yunohost.org/ci/apps/piwigo/)
* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/piwigo.svg)](https://ci-apps-arm.yunohost.org/ci/apps/piwigo/)
## Limitations

View file

@ -175,16 +175,18 @@ ynh_local_curl "/install.php?language=$applanguage" "install=true" "dbuser=$db_n
ynh_script_progression --message="Configuring Piwigo..."
# Change local config
cp ../conf/config.inc.php $final_path/local/config/
#cp ../conf/config.inc.php $final_path/local/config/
# Calculate and store the config file checksum
ynh_store_file_checksum --file="$final_path/local/config/config.inc.php"
#ynh_store_file_checksum --file="$final_path/local/config/config.inc.php"
ynh_add_config --template="../conf/config.inc.php" --destination="$final_path/local/config/config.inc.php"
# Setup database in local/config/database.inc.php
ynh_add_config --template="../conf/database.inc.php" --destination="$final_path/local/config/database.inc.php"
# Calculate and store the database config file checksum
ynh_store_file_checksum --file="$final_path/local/config/database.inc.php"
#ynh_store_file_checksum --file="$final_path/local/config/database.inc.php"
#=================================================
# ADD LDAP PLUGIN

View file

@ -215,21 +215,23 @@ ynh_local_curl "/upgrade.php?language=$applanguage&now=true" "language=$applangu
ynh_script_progression --message="Configuring Piwigo..."
# Make a backup of the original config file if modified
ynh_backup_if_checksum_is_different --file="$final_path/local/config/config.inc.php"
#ynh_backup_if_checksum_is_different --file="$final_path/local/config/config.inc.php"
# Change local config
cp ../conf/config.inc.php $final_path/local/config/
#cp ../conf/config.inc.php $final_path/local/config/
# Calculate and store the config file checksum
ynh_store_file_checksum --file="$final_path/local/config/config.inc.php"
#ynh_store_file_checksum --file="$final_path/local/config/config.inc.php"
ynh_add_config --template="../conf/config.inc.php" --destination="$final_path/local/config/config.inc.php"
# Make a backup of the original database config file if modified
ynh_backup_if_checksum_is_different --file="$final_path/local/config/database.inc.php"
#ynh_backup_if_checksum_is_different --file="$final_path/local/config/database.inc.php"
ynh_add_config --template="../conf/database.inc.php" --destination="$final_path/local/config/database.inc.php"
# Calculate and store the database config file checksum
ynh_store_file_checksum --file="$final_path/local/config/database.inc.php"
#ynh_store_file_checksum --file="$final_path/local/config/database.inc.php"
#=================================================
# CONFIGURE LDAP PLUGIN