mirror of
https://github.com/YunoHost-Apps/phplicensewatcher_ynh.git
synced 2024-09-03 19:56:32 +02:00
update
This commit is contained in:
parent
c22486a3c1
commit
06c752bbf4
2 changed files with 37 additions and 5 deletions
32
conf/config.php
Executable file
32
conf/config.php
Executable file
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
/* This is an autogenerated phplicensewatcher config-file */
|
||||
/* A good commented config-file is included in the distribution (in case you want to modify it manually. */
|
||||
$lmutil_loc="/usr/local/bin/lmutil";
|
||||
$i4blt_loc="/opt/lum/ls/bin/i4blt";
|
||||
$LUM_timeout=4;
|
||||
$notify_address="your.email.address@example.com";
|
||||
$lead_time=10;
|
||||
$disable_autorefresh=0;
|
||||
$disable_license_removal=0;
|
||||
$collection_interval=15;
|
||||
$db_type="mysql";
|
||||
$db_hostname="localhost";
|
||||
$db_username="yunouser";
|
||||
$db_password="yunopass";
|
||||
$db_database="yunobase";
|
||||
$dsn="mysql://$db_username:$db_password@$db_hostname/$db_database";
|
||||
$colors="#ffffdd,#ff9966, #ffffaa,#ccccff,#cccccc,#ffcc66,#99ff99,#eeeeee,#66ffff,#ccffff, #ffff66, #ffccff,#ff66ff, yellow,lightgreen,lightblue";
|
||||
$smallgraph="300,200";
|
||||
$largegraph="600,300";
|
||||
$legendpoints="";
|
||||
$servers[]="27000@flexlmserver1.example.com";
|
||||
$servers[]="27000@flexlmserver2.example.com";
|
||||
$servers[]="";
|
||||
$description[]="Name of the first software";
|
||||
$description[]="Name of the second software";
|
||||
$description[]="";
|
||||
$log_file[]="";
|
||||
$log_file[]="";
|
||||
$log_file[]="";
|
||||
$lmstat_loc=$lmutil_loc . " lmstat";
|
||||
?>
|
|
@ -80,7 +80,7 @@ ynh_print_info "Installing dependencies..."
|
|||
### - As well as the section "REINSTALL DEPENDENCIES" in the restore script
|
||||
### - And the section "UPGRADE DEPENDENCIES" in the upgrade script
|
||||
|
||||
ynh_install_app_dependencies php7.0-mbstring
|
||||
#ynh_install_app_dependencies php7.0-mbstring
|
||||
|
||||
#=================================================
|
||||
# CREATE A MYSQL DATABASE
|
||||
|
@ -126,11 +126,11 @@ ynh_system_user_create $app
|
|||
# MODIFY A CONFIG FILE
|
||||
#=================================================
|
||||
|
||||
cp -a ../conf/config_inc.php.sample $final_path/config/config_inc.php.sample
|
||||
cp -a ../conf/config.php $final_path/config/config.php
|
||||
|
||||
ynh_replace_string "yunouser" "$db_name" "$final_path/config/config_inc.php.sample"
|
||||
ynh_replace_string "yunopass" "$db_pwd" "$final_path/config/config_inc.php.sample"
|
||||
ynh_replace_string "yunobase" "$db_name" "$final_path/config/config_inc.php.sample"
|
||||
ynh_replace_string "yunouser" "$db_name" "$final_path/config/config.php"
|
||||
ynh_replace_string "yunopass" "$db_pwd" "$final_path/config/config.php"
|
||||
ynh_replace_string "yunobase" "$db_name" "$final_path/config/config.php"
|
||||
#ynh_replace_string "yunomail" "$email" "$final_path/config_inc.php.sample"
|
||||
#ynh_replace_string "yunodomain" "$domain" "$final_path/config_inc.php.sample"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue