Commit 2e8ba501 authored by Daniel's avatar Daniel

Update overlay/root/update_git.sh

parent 20b4a350
......@@ -16,15 +16,12 @@ if ! $(check_installed_package rsync); then pkg install rsync; fi
if [ ! -d "$dir_git_nc" ]; then
git clone https://code.myprivatesite.de/iocage-plugins/nextcloud.git $dir_git_nc
cd ${dir_git_nc}
rsync -a "${dir_git_nc}/overlay/root/" /root/
else
cd ${dir_git_nc}
git config pull.rebase true
git checkout .
git pull
rsync -a "${dir_git_nc}/overlay/root/" /root/
find /root/ -type f -iname "*.sh" -print0 | xargs -0 chmod +x
fi
rsync -a "${dir_git_nc}/overlay/root/" /root/
find /root/ -type f -iname "*.sh" -print0 | xargs -0 chmod +x
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment