From efc411ce0af7f7aafbf01e874b27d9e697955f3f Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 3 Jan 2024 22:10:45 -0300 Subject: Fix: chown usage --- mediawiki-dl | 2 +- nextcloud-dl | 2 +- owncloud-dl | 2 +- piwik-dl | 2 +- postfixadmin-dl | 2 +- roundcube-dl | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mediawiki-dl b/mediawiki-dl index e899e42..643b6d4 100755 --- a/mediawiki-dl +++ b/mediawiki-dl @@ -38,7 +38,7 @@ function mediawiki_deploy { # In some filesystems we won't be able to change ownership, so # that's why we're ignoring errors - $sudo chown -R root. mediawiki-$VERSION &> /dev/null + $sudo chown -R root: mediawiki-$VERSION &> /dev/null $sudo rm $TARBALL* $sudo ln -sf mediawiki-$VERSION mediawiki diff --git a/nextcloud-dl b/nextcloud-dl index e096751..39408ab 100755 --- a/nextcloud-dl +++ b/nextcloud-dl @@ -44,7 +44,7 @@ rm nextcloud-$VERSION.tar.bz2 rm nextcloud-$VERSION.tar.bz2.sha256 # Sync configuration and data -chown -R root. nextcloud-$VERSION +chown -R root: nextcloud-$VERSION rsync -av nextcloud-$OLD_VERSION/config/ nextcloud-$VERSION/config/ rsync -av nextcloud-$OLD_VERSION/data/ nextcloud-$VERSION/data/ diff --git a/owncloud-dl b/owncloud-dl index 3ac5a60..dce74d0 100755 --- a/owncloud-dl +++ b/owncloud-dl @@ -41,7 +41,7 @@ wget https://download.owncloud.org/community/owncloud-$VERSION.tar.bz2 rm owncloud-$VERSION.tar.bz2 # Sync configuration -chown -R root. owncloud-$VERSION +chown -R root: owncloud-$VERSION rsync -av owncloud-$OLD_VERSION/config/ owncloud-$VERSION/config/ # Symlink to contrib content diff --git a/piwik-dl b/piwik-dl index 28b79fa..6820cc1 100755 --- a/piwik-dl +++ b/piwik-dl @@ -21,7 +21,7 @@ rm *html && \ rm latest.zip* && \ ( cd piwik && mkdir -p config tmp ) && \ cp -a piwik.old/config/config.ini.php piwik/config/ && \ -chown -R stats.stats piwik/{config,tmp} && \ +chown -R stats:stats piwik/{config,tmp} && \ echo "Audit:" && \ du -hs piwik && \ du -hs piwik.old diff --git a/postfixadmin-dl b/postfixadmin-dl index f248891..d71eb96 100755 --- a/postfixadmin-dl +++ b/postfixadmin-dl @@ -45,7 +45,7 @@ rm postfixadmin-$VERSION.tar.gz rm postfixadmin-$VERSION.tar.gz.asc # Sync configuration -chown -R root. postfixadmin-$VERSION +chown -R root: postfixadmin-$VERSION cp -a postfixadmin-$OLD_VERSION/config.local.php postfixadmin-$VERSION/config.local.php cp -a postfixadmin-$OLD_VERSION/templates_c postfixadmin-$VERSION/templates_c diff --git a/roundcube-dl b/roundcube-dl index b65d710..575e279 100755 --- a/roundcube-dl +++ b/roundcube-dl @@ -41,7 +41,7 @@ tar xvf roundcubemail-$VERSION.tar.gz rm roundcubemail-$VERSION.tar.gz # Fix permissions -chown -R root. roundcubemail-$VERSION +chown -R root: roundcubemail-$VERSION # Sync configuration for section in db config custom logs temp; do -- cgit v1.2.3