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:
parent
0994a895fa
commit
2f363dbc25
3 changed files with 14 additions and 10 deletions
|
@ -39,8 +39,8 @@ In addition to Piwigo core features, the following are made available with this
|
|||
|
||||
#### Supported architectures
|
||||
|
||||
* x86-64 - [](https://ci-apps.yunohost.org/ci/apps/piwigo/)
|
||||
* ARMv8-A - [](https://ci-apps-arm.yunohost.org/ci/apps/piwigo/)
|
||||
* x86-64 - [](https://ci-apps.yunohost.org/ci/apps/piwigo/)
|
||||
* ARMv8-A - [](https://ci-apps-arm.yunohost.org/ci/apps/piwigo/)
|
||||
|
||||
## Limitations
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue