mirror of
https://github.com/YunoHost-Apps/calckey_ynh.git
synced 2024-09-03 18:16:18 +02:00
commit
7d3d1cc22e
2 changed files with 19 additions and 2 deletions
|
@ -16,7 +16,7 @@ demo = "https://i.calckey.cloud/"
|
||||||
code = "https://codeberg.org/calckey/calckey"
|
code = "https://codeberg.org/calckey/calckey"
|
||||||
|
|
||||||
[integration]
|
[integration]
|
||||||
yunohost = ">= 11.1.21"
|
yunohost = ">= 11.1.19"
|
||||||
architectures = "all"
|
architectures = "all"
|
||||||
multi_instance = false
|
multi_instance = false
|
||||||
ldap = "not_relevant"
|
ldap = "not_relevant"
|
||||||
|
|
|
@ -27,6 +27,23 @@ ynh_script_progression --message="Reinstalling dependencies..." --weight=5
|
||||||
# Define and install dependencies
|
# Define and install dependencies
|
||||||
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# ADD A CONFIGURATION
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
|
# Configure redis
|
||||||
|
redis_db=$(ynh_redis_get_free_db)
|
||||||
|
ynh_app_setting_set --app="$app" --key=redis_db --value="$redis_db"
|
||||||
|
|
||||||
|
ynh_add_config --template="../conf/default.yml" --destination="$install_dir/.config/default.yml"
|
||||||
|
|
||||||
|
chmod 750 "$install_dir"
|
||||||
|
chmod -R o-rwx "$install_dir"
|
||||||
|
chown -R $app:www-data "$install_dir"
|
||||||
|
chmod 400 "$install_dir/.config/default.yml"
|
||||||
|
chown $app:$app "$install_dir/.config/default.yml"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REINSTALL PNPM
|
# REINSTALL PNPM
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue