mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Fix linter warnings
This commit is contained in:
parent
82890494c4
commit
b1204dbd3d
4 changed files with 11 additions and 31 deletions
|
@ -1,25 +0,0 @@
|
||||||
;; Full test
|
|
||||||
; Manifest
|
|
||||||
domain="domain.tld"
|
|
||||||
path="/path"
|
|
||||||
is_public=1
|
|
||||||
password="1Strong-Password"
|
|
||||||
; Checks
|
|
||||||
pkg_linter=1
|
|
||||||
setup_sub_dir=1
|
|
||||||
setup_root=1
|
|
||||||
setup_nourl=0
|
|
||||||
setup_private=1
|
|
||||||
setup_public=1
|
|
||||||
upgrade=1
|
|
||||||
# Before refactoring yunohost package
|
|
||||||
#upgrade=1 from_commit=0f904d99367cfec27ec5fe303941fbf1124a7571
|
|
||||||
# 4.1.5~ynh3
|
|
||||||
upgrade=1 from_commit=17bde85b095eddeeb279ef96f5697f92a59380db
|
|
||||||
backup_restore=1
|
|
||||||
multi_instance=1
|
|
||||||
port_already_use=0
|
|
||||||
change_url=1
|
|
||||||
;;; Options
|
|
||||||
Email=
|
|
||||||
Notification=none
|
|
|
@ -54,7 +54,7 @@ ram.runtime = "?" # FIXME: replace with an **estimate** minimum ram requirement.
|
||||||
main.url = "/"
|
main.url = "/"
|
||||||
|
|
||||||
[resources.apt]
|
[resources.apt]
|
||||||
packages = "python3-dev, python3-venv, libffi-dev, libssl-dev"
|
packages = "mariadb-server, python3-dev, python3-venv, libffi-dev, libssl-dev"
|
||||||
|
|
||||||
[resources.database]
|
[resources.database]
|
||||||
type = "mysql"
|
type = "mysql"
|
||||||
|
|
|
@ -9,10 +9,6 @@
|
||||||
source _common.sh
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
# Secret key for cookies encryption.
|
|
||||||
secret_key=$(ynh_string_random --length=32)
|
|
||||||
ynh_app_setting_set --app=$app --key=secret_key --value=$secret_key
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC SETUP
|
# SPECIFIC SETUP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -41,6 +37,10 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Adding a configuration file..."
|
ynh_script_progression --message="Adding a configuration file..."
|
||||||
|
|
||||||
|
# Secret key for cookies encryption.
|
||||||
|
secret_key=$(ynh_string_random --length=32)
|
||||||
|
ynh_app_setting_set --app=$app --key=secret_key --value=$secret_key
|
||||||
|
|
||||||
#run source in a 'sub shell'
|
#run source in a 'sub shell'
|
||||||
(
|
(
|
||||||
set +o nounset
|
set +o nounset
|
||||||
|
@ -49,7 +49,7 @@ ynh_script_progression --message="Adding a configuration file..."
|
||||||
python3 ../conf/hash_generator.py $password > ${install_dir}/key.txt
|
python3 ../conf/hash_generator.py $password > ${install_dir}/key.txt
|
||||||
)
|
)
|
||||||
|
|
||||||
hashed_password=$(cat $install_dir/key.txt)
|
hashed_password=$(cat "$install_dir/key.txt")
|
||||||
ynh_secure_remove --file="$install_dir/key.txt"
|
ynh_secure_remove --file="$install_dir/key.txt"
|
||||||
ynh_app_setting_set --app=$app --key=hashed_password --value=$hashed_password
|
ynh_app_setting_set --app=$app --key=hashed_password --value=$hashed_password
|
||||||
|
|
||||||
|
|
5
tests.toml
Normal file
5
tests.toml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
test_format = 1.0
|
||||||
|
|
||||||
|
[default]
|
||||||
|
|
||||||
|
test_upgrade_from.17bde85b095eddeeb279ef96f5697f92a59380db.name = "Upgrade from 5.4"
|
Loading…
Add table
Reference in a new issue