mirror of
https://github.com/YunoHost-Apps/invidious_ynh.git
synced 2024-09-03 19:15:55 +02:00
Update install
This commit is contained in:
parent
7799d644ad
commit
f01f941513
1 changed files with 2 additions and 5 deletions
|
@ -84,7 +84,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
|||
ynh_script_progression --message="Creating a PostgreSQL database..." --weight=2
|
||||
|
||||
db_name=$(ynh_sanitize_dbid --db_name=$app)
|
||||
db_user=$db_name
|
||||
db_user="kemal"
|
||||
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
|
||||
ynh_psql_test_if_first_run
|
||||
ynh_psql_setup_db --db_user=$db_name --db_name=$db_name
|
||||
|
@ -103,10 +103,7 @@ pushd "$final_path"
|
|||
git reset --hard --quiet $version_commit
|
||||
popd
|
||||
|
||||
for i in $final_path/config/sql/*.sql ; do
|
||||
ynh_replace_string --match_string="kemal" --replace_string=$db_user --target_file="$i" ;
|
||||
ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < "$i" ;
|
||||
done
|
||||
ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name
|
||||
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
|
|
Loading…
Add table
Reference in a new issue