diff options
author | onefang | 2022-10-18 11:54:10 +1000 |
---|---|---|
committer | onefang | 2022-10-18 11:54:10 +1000 |
commit | ddb9895ae679d31cc30ba3d7cf0f22fe25bec6fa (patch) | |
tree | 20447cde2a7be87f7af1c2322fcb424ff5d510ae | |
parent | Minor tweak to DNSRR output. (diff) | |
download | apt-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-x | update_apt-panopticon | 12 |
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 | ||
3 | cd /var/www/html/apt-panopticon/apt-panopticon_cgp | 3 | cd /var/www/html/apt-panopticon/apt-panopticon_cgp |
4 | #git pull > /dev/null | 4 | if [ -f .git ] ; then |
5 | #chown -R mirrors:www-data * | 5 | git pull > /dev/null |
6 | #chown -R mirrors:www-data * | ||
7 | fi | ||
6 | cd /var/www/html/apt-panopticon/apt-panopticon | 8 | cd /var/www/html/apt-panopticon/apt-panopticon |
7 | #git pull > /dev/null | 9 | if [ -f .git ] ; then |
8 | #chown -R mirrors:www-data * | 10 | git pull > /dev/null |
11 | #chown -R mirrors:www-data * | ||
12 | fi | ||
9 | 13 | ||
10 | if [ ! -f apt-panopticon.lock ] ; then | 14 | if [ ! -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 |