1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gogs_ynh.git synced 2024-09-03 20:36:23 +02:00

Fix update from old package

This commit is contained in:
mbugeia 2016-10-11 22:22:47 +02:00
parent 8f45537d13
commit 081886c333

View file

@ -35,9 +35,11 @@ DATA_PATH=/home/"$app"/data
# this code will be removed in the future
if [ -d "/etc/gogs" ]
then
# move re
# move repositories to new dir
sudo mkdir -p "$REPO_PATH"
old_repo_path=$(ynh_app_setting_get "$app" repopath)
sudo mv "$old_repo_path"/* "$REPO_PATH"
# cleanup old dir and conf
sudo unlink /opt/gogs
sudo rm -rf /etc/gogs /opt/gogs_src
fi