Updated update script.
This commit is contained in:
@@ -5,8 +5,9 @@ gitPath="${gitUrl##*/}"
|
||||
pushd /tmp
|
||||
git clone "${gitUrl}"
|
||||
pushd "${gitPath}"
|
||||
git lfs pull
|
||||
# Copy all files as root (preserves permissions properly)
|
||||
find . -path './.git' -prune -o -type f -exec bash -c 'for i ; do cp -av --preserve=all --parents "${i}" /;done' _ {} \;
|
||||
find . -path './.git' -prune -o -type f -exec bash -c 'for i ; do cp -av --preserve=all --parents "${i}" /;done' _ "{}" \;
|
||||
# Fix ownership of home directory files
|
||||
chown -R stormux:users /home/stormux
|
||||
popd
|
||||
|
||||
Reference in New Issue
Block a user