aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/update_apt-panopticon
diff options
context:
space:
mode:
authordvs12024-10-20 10:53:33 +1000
committerdvs12024-10-20 10:53:33 +1000
commit72658b5b29afaead6b9472b2ef6ca78e2504903a (patch)
treeb3cba7a18c12441dd42f145e7320e9a5e0e58d1b /update_apt-panopticon
parentDebian keyring changed again! Three months since the last one. (diff)
downloadapt-panopticon-72658b5b29afaead6b9472b2ef6ca78e2504903a.zip
apt-panopticon-72658b5b29afaead6b9472b2ef6ca78e2504903a.tar.gz
apt-panopticon-72658b5b29afaead6b9472b2ef6ca78e2504903a.tar.bz2
apt-panopticon-72658b5b29afaead6b9472b2ef6ca78e2504903a.tar.xz
chown symlinks, not their destination.
Diffstat (limited to '')
-rwxr-xr-xupdate_apt-panopticon6
1 files 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"
6cd ${PANOPATH}/apt-panopticon_cgp 6cd ${PANOPATH}/apt-panopticon_cgp
7if [ -d .git ] ; then 7if [ -d .git ] ; then
8 git pull > /dev/null 8 git pull > /dev/null
9 chown -R www-data:www-data * 9 chown -hR www-data:www-data *
10fi 10fi
11cd ${PANOPATH}/apt-panopticon 11cd ${PANOPATH}/apt-panopticon
12if [ -d .git ] ; then 12if [ -d .git ] ; then
13 git pull > /dev/null 13 git pull > /dev/null
14 chown -R www-data:www-data * 14 chown -hR www-data:www-data *
15fi 15fi
16 16
17# Check if the lock file still exists. 17# Check if the lock file still exists.
@@ -49,7 +49,7 @@ if [ -f apt-panopticon.lock ] ; then
49fi 49fi
50rm ../results; ln -s apt-panopticon/results ../results 50rm ../results; ln -s apt-panopticon/results ../results
51 51
52chown -R www-data:www-data * 52chown -hR www-data:www-data *
53 53
54# Clean up any mess left over from THIS failed run. 54# Clean up any mess left over from THIS failed run.
55find results_* -maxdepth 2 ! -name "pkgmaster.devuan.org" -name "*.*" -type d -print0 | xargs -0rt /bin/rm -fr 55find results_* -maxdepth 2 ! -name "pkgmaster.devuan.org" -name "*.*" -type d -print0 | xargs -0rt /bin/rm -fr