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:
parent
8f45537d13
commit
081886c333
1 changed files with 3 additions and 1 deletions
|
@ -35,9 +35,11 @@ DATA_PATH=/home/"$app"/data
|
||||||
# this code will be removed in the future
|
# this code will be removed in the future
|
||||||
if [ -d "/etc/gogs" ]
|
if [ -d "/etc/gogs" ]
|
||||||
then
|
then
|
||||||
# move re
|
# move repositories to new dir
|
||||||
|
sudo mkdir -p "$REPO_PATH"
|
||||||
old_repo_path=$(ynh_app_setting_get "$app" repopath)
|
old_repo_path=$(ynh_app_setting_get "$app" repopath)
|
||||||
sudo mv "$old_repo_path"/* "$REPO_PATH"
|
sudo mv "$old_repo_path"/* "$REPO_PATH"
|
||||||
|
# cleanup old dir and conf
|
||||||
sudo unlink /opt/gogs
|
sudo unlink /opt/gogs
|
||||||
sudo rm -rf /etc/gogs /opt/gogs_src
|
sudo rm -rf /etc/gogs /opt/gogs_src
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue