1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/shiori_ynh.git synced 2024-09-03 20:26:17 +02:00
This commit is contained in:
ericgaspar 2022-01-10 15:36:34 +01:00
parent 998909e8ab
commit 0ae9486e44
No known key found for this signature in database
GPG key ID: 574F281483054D44
5 changed files with 10 additions and 18 deletions

View file

@ -1,15 +1,11 @@
;; Test complet
; Manifest
domain="domain.tld"
path="/path"
admin="john"
language="fr"
path="/"
is_public=1
password="1Strong-Password"
port="666"
; Checks
pkg_linter=1
setup_sub_dir=1
setup_sub_dir=0
setup_root=1
setup_nourl=0
setup_private=1

2
conf/.env Normal file
View file

@ -0,0 +1,2 @@
SHIORI_DBTYPE=mysql
SHIORI_DSN=__DB_USER__:__DB_PWD__@(localhost)/__DB_NAME__?charset=utf8&parseTime=True&loc=Local

View file

@ -100,12 +100,6 @@ then
ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf"
fi
#=================================================
# SPECIFIC MODIFICATIONS
#=================================================
# ...
#=================================================
#=================================================
# GENERIC FINALISATION
#=================================================

View file

@ -74,7 +74,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
#=================================================
# CREATE A MYSQL DATABASE
#=================================================
# ynh_script_progression --message="Creating a MySQL database..." --time --weight=1
# ynh_script_progression --message="Creating a MySQL database..." --weight=2
# db_name=$(ynh_sanitize_dbid --db_name=$app)
# db_user=$db_name
@ -120,12 +120,12 @@ chown -R $app:www-data "$datadir"
#=================================================
# ADD A CONFIGURATION
#=================================================
# ynh_script_progression --message="Adding a configuration file..." --time --weight=1
# ynh_script_progression --message="Adding a configuration file..." --weight=1
# ynh_add_config --template="some_config_file" --destination="$final_path/some_config_file"
# ynh_add_config --template="../conf/.env" --destination="$final_path/.env"
# chmod 400 "$final_path/some_config_file"
# chown $app:$app "$final_path/some_config_file"
# chmod 400 "$final_path/.env"
# chown $app:$app "$final_path/.env"
#=================================================
# SETUP SYSTEMD

View file

@ -122,7 +122,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app"
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="A short description of the app" --log="/var/log/$app/$app.log"
yunohost service add $app --description="Simple bookmark manager" --log="/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE