mirror of
https://github.com/YunoHost-Apps/xbackbone_ynh.git
synced 2024-09-03 19:15:53 +02:00
cleaning
This commit is contained in:
parent
ffd09c3e46
commit
09df39ba72
3 changed files with 6 additions and 17 deletions
|
@ -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'
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
||||
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
|
||||
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue