From 72658b5b29afaead6b9472b2ef6ca78e2504903a Mon Sep 17 00:00:00 2001 From: dvs1 Date: Sun, 20 Oct 2024 10:53:33 +1000 Subject: chown symlinks, not their destination. --- update_apt-panopticon | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/update_apt-panopticon b/update_apt-panopticon index dde18a5..969cc8f 100755 --- a/update_apt-panopticon +++ b/update_apt-panopticon @@ -6,12 +6,12 @@ PANOPATH="/var/www/html/apt-panopticon" cd ${PANOPATH}/apt-panopticon_cgp if [ -d .git ] ; then git pull > /dev/null - chown -R www-data:www-data * + chown -hR www-data:www-data * fi cd ${PANOPATH}/apt-panopticon if [ -d .git ] ; then git pull > /dev/null - chown -R www-data:www-data * + chown -hR www-data:www-data * fi # Check if the lock file still exists. @@ -49,7 +49,7 @@ if [ -f apt-panopticon.lock ] ; then fi rm ../results; ln -s apt-panopticon/results ../results -chown -R www-data:www-data * +chown -hR www-data:www-data * # Clean up any mess left over from THIS failed run. find results_* -maxdepth 2 ! -name "pkgmaster.devuan.org" -name "*.*" -type d -print0 | xargs -0rt /bin/rm -fr -- cgit v1.1