1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/xbackbone_ynh.git synced 2024-09-03 19:15:53 +02:00
This commit is contained in:
Éric Gaspar 2024-05-12 18:31:32 +02:00
parent ffd09c3e46
commit 09df39ba72
3 changed files with 6 additions and 17 deletions

View file

@ -62,12 +62,11 @@ get__prices() {
fi
}
#=================================================
# SPECIFIC VALIDATORS FOR TOML SHORT KEYS
#=================================================
validate__publishable_key() {
validate__publishable_key() {
# We can imagine here we test if the key is really a publisheable key
(is_secret_key $publishable_key) &&
echo 'This key seems to be a secret key'

View file

@ -37,9 +37,9 @@ ynh_add_nginx_config
ynh_script_progression --message="Adding a configuration file..." --weight=1
if [ "$path" == "/" ]; then
ynh_add_config --template="../conf/config-subdomain.php" --destination="$install_dir/config.php"
ynh_add_config --template="config-subdomain.php" --destination="$install_dir/config.php"
else
ynh_add_config --template="../conf/config-withpath.php" --destination="$install_dir/config.php"
ynh_add_config --template="config-withpath.php" --destination="$install_dir/config.php"
fi
chmod 400 "$install_dir/config.php"

View file

@ -9,23 +9,13 @@
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# CHECK VERSION
#=================================================
upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
ynh_script_progression --message="Upgrading source files..." --weight=1
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --keep="config.php"
fi
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --keep="config.php"
chown -R $app:www-data "$install_dir"