Browse Source
Merge pull request #364 from YunoHost-Apps/Remove-owncloud-migration
Merge pull request #364 from YunoHost-Apps/Remove-owncloud-migration
Remove ownCloud migrationpull/366/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 2 additions and 158 deletions
-
24README.md
-
25README_fr.md
-
13conf/owncloud_migration
-
45conf/owncloud_post_migration.sh
-
53scripts/upgrade
@ -1,13 +0,0 @@ |
|||
# File to migrate from Owncloud |
|||
|
|||
# Final path |
|||
/var/www/$app |
|||
|
|||
# Data directory |
|||
/home/yunohost.app/$app |
|||
|
|||
# Nginx config |
|||
/etc/nginx/conf.d/$domain.d/$app.conf |
|||
|
|||
# php-fpm config |
|||
/etc/php5/fpm/pool.d/$app.conf |
|||
@ -1,45 +0,0 @@ |
|||
#!/bin/bash |
|||
|
|||
# Ending the migration process from Owncloud to Nextcloud |
|||
|
|||
set -u |
|||
|
|||
#================================================= |
|||
# IMPORT GENERIC HELPERS |
|||
#================================================= |
|||
|
|||
source /usr/share/yunohost/helpers |
|||
|
|||
#================================================= |
|||
# SET VARIABLES |
|||
#================================================= |
|||
|
|||
old_app="__OLD_APP__" |
|||
new_app="__NEW_APP__" |
|||
script_name="$0" |
|||
|
|||
#================================================= |
|||
# MOVE HOOKS |
|||
#================================================= |
|||
|
|||
hooks_dir="/etc/yunohost/hooks.d/" |
|||
mv "$hooks_dir/post_user_create/50-$old_app" "$hooks_dir/post_user_create/50-$new_app" |
|||
|
|||
#================================================= |
|||
# DELETE OLD APP'S SETTINGS |
|||
#================================================= |
|||
|
|||
ynh_secure_remove "/etc/yunohost/apps/$old_app" |
|||
yunohost app ssowatconf |
|||
|
|||
#================================================= |
|||
# REMOVE THE OLD USER |
|||
#================================================= |
|||
|
|||
ynh_system_user_delete $old_app |
|||
|
|||
#================================================= |
|||
# DELETE THIS SCRIPT |
|||
#================================================= |
|||
|
|||
echo "rm $script_name" | at now + 1 minutes |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue