mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
fix upgrade script, url to match VERSION, sqlite does not have a db name, there is no password users app and no shell, the directory off the app is
This commit is contained in:
parent
56b18dcdee
commit
cff44b8b06
1 changed files with 5 additions and 5 deletions
|
@ -71,19 +71,19 @@ fi
|
|||
#=================================================
|
||||
|
||||
[[ $YNH_APP_ID == "garradin" ]] \
|
||||
&& [[ "$(cat "/opt/$app/templates/.VERSION")" != 1.2.2 ]] \
|
||||
&& [[ "$(cat "/$final_path/VERSION")" != 1.2.2 ]] \
|
||||
&& ynh_die --message "It look like that you have an old Garradin install. You need first upgrade Garradin instance (id: $garradin_migrate_id) and after migrate to Paheko."
|
||||
ynh_handle_app_migration --migration_id=garradin --migration_list=garradin_migrations
|
||||
|
||||
if [[ $migration_process -eq 1 ]]; then
|
||||
# Reload variables
|
||||
dbname=$app
|
||||
db_user=$app
|
||||
#dbname=$app
|
||||
#db_user=$app
|
||||
|
||||
# Replace the user
|
||||
ynh_system_user_delete --username="$old_app"
|
||||
test getent passwd "$app" &>/dev/null || \
|
||||
useradd -d "$datadir" --system --user-group "$app" --shell /bin/bash || \
|
||||
#test getent passwd "$app" &>/dev/null || \
|
||||
useradd -d "$final_path" --system --user-group "$app" || \
|
||||
ynh_die --message "Unable to create $app system account"
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue