1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paheko_ynh.git synced 2024-09-03 19:56:22 +02:00

Merge pull request #2 from fflorent/patch-1

Fix typo
This commit is contained in:
Éric Gaspar 2023-01-15 12:36:51 +01:00 committed by GitHub
commit 56b18dcdee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,7 @@ fi
[[ $YNH_APP_ID == "garradin" ]] \
&& [[ "$(cat "/opt/$app/templates/.VERSION")" != 1.2.2 ]] \
&& ynh_die --message "It look like that you have an old Garradin install. You need first upgrade Gogs instance (id: $garradin_migrate_id) and after migrate to Paheko."
&& 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
@ -81,7 +81,7 @@ if [[ $migration_process -eq 1 ]]; then
db_user=$app
# Replace the user
ynh_system_user_delete $old_app
ynh_system_user_delete --username="$old_app"
test getent passwd "$app" &>/dev/null || \
useradd -d "$datadir" --system --user-group "$app" --shell /bin/bash || \
ynh_die --message "Unable to create $app system account"