Updated files. UPdated live update script.
This commit is contained in:
+4
-4
@@ -5,10 +5,10 @@ gitPath="${gitUrl##*/}"
|
||||
pushd /tmp
|
||||
sudo -u stormux git clone "${gitUrl}"
|
||||
pushd "${gitPath}"
|
||||
# Handle home directory files (preserve user ownership)
|
||||
find . -path './.git' -prune -o -path './home/stormux/*' -type f -exec bash -c 'for i ; do cp -av "${i}" "/${i#./}";done' _ {} \;
|
||||
# Handle system files (will be root-owned)
|
||||
find . -path './.git' -prune -o -path './home' -prune -o -type f -exec bash -c 'for i ; do cp -v "${i}" "/${i#./}";done' _ {} \;
|
||||
# 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 "${i}" "/${i#./}";done' _ {} \;
|
||||
# Fix ownership of home directory files
|
||||
chown -R stormux:users /home/stormux
|
||||
popd
|
||||
rm -rf "${gitPath}"
|
||||
popd
|
||||
|
||||
Reference in New Issue
Block a user