1
0
Fork 0
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:
ericgaspar 2021-10-03 12:27:47 +02:00
parent 7799d644ad
commit f01f941513
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -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"