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
7f3af18cae
commit
e3fffca6ee
1 changed files with 3 additions and 2 deletions
|
@ -99,7 +99,6 @@ ynh_print_info "Creating a MySQL database..."
|
||||||
db_name=$(ynh_sanitize_dbid $app)
|
db_name=$(ynh_sanitize_dbid $app)
|
||||||
ynh_app_setting_set $app db_name $db_name
|
ynh_app_setting_set $app db_name $db_name
|
||||||
ynh_mysql_setup_db $db_name $db_name
|
ynh_mysql_setup_db $db_name $db_name
|
||||||
ynh_mysql_execute_file_as_root --file="$final_path/phplicensewatcher.sql" --database="$db_name"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
|
@ -127,6 +126,9 @@ ynh_system_user_create $app
|
||||||
# MODIFY A CONFIG FILE
|
# MODIFY A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
# Import DB
|
||||||
|
ynh_mysql_execute_file_as_root --file="$final_path/phplicensewatcher.sql" --database="$db_name"
|
||||||
|
|
||||||
cp -a ../conf/config.php "$final_path/config.php"
|
cp -a ../conf/config.php "$final_path/config.php"
|
||||||
|
|
||||||
ynh_replace_string "yunouser" "$db_name" "$final_path/config/config.php"
|
ynh_replace_string "yunouser" "$db_name" "$final_path/config/config.php"
|
||||||
|
@ -157,7 +159,6 @@ ynh_replace_string "yunobase" "$db_name" "$final_path/config/config.php"
|
||||||
### Then, if write authorization is needed, any access should be given only to directories
|
### Then, if write authorization is needed, any access should be given only to directories
|
||||||
### that really need such authorization.
|
### that really need such authorization.
|
||||||
|
|
||||||
|
|
||||||
# Clean Files
|
# Clean Files
|
||||||
rm -f "$final_path/*.sql"
|
rm -f "$final_path/*.sql"
|
||||||
rm -f "$final_path/*.md"
|
rm -f "$final_path/*.md"
|
||||||
|
|
Loading…
Reference in a new issue