aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2022-11-23 13:47:35 +1000
committeronefang2022-11-23 13:47:35 +1000
commit4f644b85c377107a3e43770326af716431244979 (patch)
tree7c182c873769092f80eecbe6975fb3f2d9bfc687
parentYet another attempt to stop it crashing rarely. (diff)
downloadapt-panopticon-4f644b85c377107a3e43770326af716431244979.zip
apt-panopticon-4f644b85c377107a3e43770326af716431244979.tar.gz
apt-panopticon-4f644b85c377107a3e43770326af716431244979.tar.bz2
apt-panopticon-4f644b85c377107a3e43770326af716431244979.tar.xz
Oops, .git is a directory, not a file.
-rwxr-xr-xupdate_apt-panopticon4
1 files changed, 2 insertions, 2 deletions
diff --git a/update_apt-panopticon b/update_apt-panopticon
index 219d86a..8edb43d 100755
--- a/update_apt-panopticon
+++ b/update_apt-panopticon
@@ -1,12 +1,12 @@
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
4if [ -f .git ] ; then 4if [ -d .git ] ; then
5 git pull > /dev/null 5 git pull > /dev/null
6 chown -R www-data:www-data * 6 chown -R www-data:www-data *
7fi 7fi
8cd /var/www/html/apt-panopticon/apt-panopticon 8cd /var/www/html/apt-panopticon/apt-panopticon
9if [ -f .git ] ; then 9if [ -d .git ] ; then
10 git pull > /dev/null 10 git pull > /dev/null
11 chown -R www-data:www-data * 11 chown -R www-data:www-data *
12fi 12fi