1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paheko_ynh.git synced 2024-09-03 19:56:22 +02:00

add a configuration file on

This commit is contained in:
rodinux 2023-12-25 01:20:34 +01:00
parent b360de7a96
commit 974f1033cd
3 changed files with 14 additions and 14 deletions

View file

@ -2,13 +2,13 @@
/**
* Ce fichier représente un exemple des constantes de configuration
* disponibles pour Paheko. Il est bâti depuis une copie du fichier __INSTALL_DIR__/config.dist.php
* disponibles pour Paheko. Il est bâti depuis une copie du fichier '$install_dir/config.dist.php'
*
* NE PAS MODIFIER LES VALEURS PRÉSENTES DÉCOMMENTÉES DANS CE FICHIER!
*
* Pour ajouter des configurations personnelles à votre instance et les garder,
* lisez attentivement ce fichier, puis ajoutez les constantes commentées nécessaires
* dans le fichier __DATA_DIR__/data/config.local.user.php.
* dans le fichier '$data_dir/data/config.local.user.php'.
*/
// Nécessaire pour situer les constantes dans le bon namespace

View file

@ -2,8 +2,8 @@
* Ce fichier est ici pour ajouter des personnalisations à votre configuration.
*
* Modifiez ce fichier à votre guise, excepté les constantes déjà présentes dans le fichier
* __INSTALL__DIR__/config.local.php, il ne sera pas modifié lors des prochaines mises à jour.
* Consultez le fichier __INSTALL_DIR__/config.local.php pour disposer des constantes commentées
* '$install_dir/config.local.php', il ne sera pas modifié lors des prochaines mises à jour.
* Consultez le fichier '$install_dir/config.local.php' pour disposer des constantes commentées
* que vous voudriez éventuellemnt ajouter.
*/

View file

@ -63,18 +63,18 @@ chmod 644 "/etc/cron.d/$app"
# SPECIFIC UPGRADE
#=================================================
# if ynh_compare_current_package_version --comparison lt --version 1.3.1~ynh1
# then
# ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php"
# chmod 650 "$install_dir/config.local.php"
# chown $app:$app "$install_dir/config.local.php"
# fi
if ynh_compare_current_package_version --comparison lt --version 1.3.1~ynh1
then
ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php"
chmod 650 "$install_dir/config.local.php"
chown $app:$app "$install_dir/config.local.php"
fi
if [ ! -f "$data_dir/data/config.local.user.php" ]; then
ynh_add_config --template="config.local.user.php" --destination="$data_dir/config.local.php"
chmod 650 "$data_dir/config.local.php"
chown $app:$app "$data_dir/config.local.php"
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
ynh_add_config --template="config.local.user.php" --destination="$data_dir/data/config.local.user.php"
chmod 650 "$data_dir/data/config.local.user.php"
chown $app:$app "$data_dir/config.local.user.php"
fi
#=================================================