aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2022-10-18 11:54:10 +1000
committeronefang2022-10-18 11:54:10 +1000
commitddb9895ae679d31cc30ba3d7cf0f22fe25bec6fa (patch)
tree20447cde2a7be87f7af1c2322fcb424ff5d510ae
parentMinor tweak to DNSRR output. (diff)
downloadapt-panopticon-ddb9895ae679d31cc30ba3d7cf0f22fe25bec6fa.zip
apt-panopticon-ddb9895ae679d31cc30ba3d7cf0f22fe25bec6fa.tar.gz
apt-panopticon-ddb9895ae679d31cc30ba3d7cf0f22fe25bec6fa.tar.bz2
apt-panopticon-ddb9895ae679d31cc30ba3d7cf0f22fe25bec6fa.tar.xz
Only git pull if it's a git version.
Coz my local desktop test version is just symlinked instead of git updated.
-rwxr-xr-xupdate_apt-panopticon12
1 files changed, 8 insertions, 4 deletions
diff --git a/update_apt-panopticon b/update_apt-panopticon
index b70f4c3..f2f3387 100755
--- a/update_apt-panopticon
+++ b/update_apt-panopticon
@@ -1,11 +1,15 @@
1#!/bin/bash 1#!/bin/bash
2 2
3cd /var/www/html/apt-panopticon/apt-panopticon_cgp 3cd /var/www/html/apt-panopticon/apt-panopticon_cgp
4#git pull > /dev/null 4if [ -f .git ] ; then
5#chown -R mirrors:www-data * 5 git pull > /dev/null
6 #chown -R mirrors:www-data *
7fi
6cd /var/www/html/apt-panopticon/apt-panopticon 8cd /var/www/html/apt-panopticon/apt-panopticon
7#git pull > /dev/null 9if [ -f .git ] ; then
8#chown -R mirrors:www-data * 10 git pull > /dev/null
11 #chown -R mirrors:www-data *
12fi
9 13
10if [ ! -f apt-panopticon.lock ] ; then 14if [ ! -f apt-panopticon.lock ] ; then
11 rm ../results; ln -s apt-panopticon/results_old ../results 15 rm ../results; ln -s apt-panopticon/results_old ../results