mirror of
https://github.com/YunoHost-Apps/itflow_ynh.git
synced 2024-09-03 19:26:24 +02:00
commit
46fe0acf0b
10 changed files with 20 additions and 21 deletions
|
@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
This is a dummy description of this app features
|
This is a dummy description of this app features
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 1.0~ynh1
|
**Shipped version:** 2023.10.04~ynh1
|
||||||
|
|
||||||
**Demo:** https://demo.itflow.org/
|
**Demo:** https://demo.itflow.org/
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
|
||||||
Ceci est une fausse description des fonctionalités de l'app
|
Ceci est une fausse description des fonctionalités de l'app
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 1.0~ynh1
|
**Version incluse :** 2023.10.04~ynh1
|
||||||
|
|
||||||
**Démo :** https://demo.itflow.org/
|
**Démo :** https://demo.itflow.org/
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$dbhost = 'localhost';
|
||||||
|
$dbusername = '__DB_USER__';
|
||||||
|
$dbpassword = '__DB_PWD__';
|
||||||
|
$database = '__DB_NAME__';
|
||||||
|
$mysqli = mysqli_connect($dbhost, $dbusername, $dbpassword, $database) or die('Database Connection Failed');
|
||||||
|
$config_app_name = 'ITFlow';
|
||||||
|
$config_base_url = '__DOMAIN____PATH__';
|
||||||
|
$config_https_only = false;
|
||||||
|
$repo_branch = 'master';
|
||||||
|
$installation_id = 'BmBuGzc3WzV33egS36g0K3miyQGWOfKP';
|
||||||
|
$config_enable_setup = 0;
|
|
@ -1,3 +0,0 @@
|
||||||
This is a dummy admin doc for this app
|
|
||||||
|
|
||||||
The app install dir is `__INSTALL_DIR__`
|
|
|
@ -1,3 +0,0 @@
|
||||||
Ceci est une fausse doc d'admin pour cette app
|
|
||||||
|
|
||||||
Le dossier d'install de l'app est `__INSTALL_DIR__`
|
|
|
@ -1,2 +1,3 @@
|
||||||
db name `__DB_NAME__`
|
data base name `__DB_NAME__`
|
||||||
db pwd `__DB_PWD__`
|
data base user `__DB_NAME__`
|
||||||
|
data base password `__DB_PWD__`
|
|
@ -7,7 +7,7 @@ name = "Itflow"
|
||||||
description.en = "IT documentation, ticketing and accounting system for small MSPs"
|
description.en = "IT documentation, ticketing and accounting system for small MSPs"
|
||||||
description.fr = "Système de documentation, de billetterie et de comptabilité pour les petits MSP"
|
description.fr = "Système de documentation, de billetterie et de comptabilité pour les petits MSP"
|
||||||
|
|
||||||
version = "1.0~ynh1"
|
version = "2023.10.04~ynh1"
|
||||||
|
|
||||||
maintainers = ["eric_G"]
|
maintainers = ["eric_G"]
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ chmod 644 "/etc/cron.d/$app"
|
||||||
|
|
||||||
#ynh_add_config --template="../conf/config.php" --destination="$install_dir/config.php"
|
#ynh_add_config --template="../conf/config.php" --destination="$install_dir/config.php"
|
||||||
|
|
||||||
#chmod 400 "$install_dir/config.php"
|
#chmod 644 "$install_dir/config.php"
|
||||||
#chown $app:$app "$install_dir/config.php"
|
#chown $app:$app "$install_dir/config.php"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -46,8 +46,6 @@ ynh_restore_file --origin_path="/etc/cron.d/$app"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1
|
ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1
|
||||||
|
|
||||||
# Typically you only have either $app or php-fpm but not both at the same time...
|
|
||||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
|
|
||||||
ynh_systemd_action --service_name=php$phpversion-fpm --action=reload
|
ynh_systemd_action --service_name=php$phpversion-fpm --action=reload
|
||||||
|
|
||||||
ynh_systemd_action --service_name=nginx --action=reload
|
ynh_systemd_action --service_name=nginx --action=reload
|
||||||
|
|
|
@ -55,13 +55,6 @@ ynh_add_nginx_config
|
||||||
#chmod 400 "$install_dir/config.php"
|
#chmod 400 "$install_dir/config.php"
|
||||||
#chown $app:$app "$install_dir/config.php"
|
#chown $app:$app "$install_dir/config.php"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# START SYSTEMD SERVICE
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Starting a systemd service..." --weight=1
|
|
||||||
|
|
||||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue