You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
481 B
21 lines
481 B
#!/bin/bash
|
|
|
|
set -u
|
|
|
|
app="#APP#"
|
|
|
|
# rename hook
|
|
hooks_dir="/etc/yunohost/hooks.d/post_user_create"
|
|
[[ -f "${hooks_dir}/50-${app}" ]] \
|
|
&& mv "${hooks_dir}/50-${app}" "${hooks_dir}/50-nextcloud"
|
|
|
|
# move yunohost app settings
|
|
apps_dir="/etc/yunohost/apps"
|
|
if [[ -d "${apps_dir}/${app}" ]]; then
|
|
yunohost app setting "$app" id -v nextcloud
|
|
mv "${apps_dir}/${app}" "${apps_dir}/nextcloud"
|
|
yunohost app ssowatconf --quiet
|
|
fi
|
|
|
|
# remove cron job
|
|
rm /etc/cron.d/owncloud-migration
|