diff options
| author | onefang | 2022-11-23 13:47:35 +1000 |
|---|---|---|
| committer | onefang | 2022-11-23 13:47:35 +1000 |
| commit | 4f644b85c377107a3e43770326af716431244979 (patch) | |
| tree | 7c182c873769092f80eecbe6975fb3f2d9bfc687 | |
| parent | Yet another attempt to stop it crashing rarely. (diff) | |
| download | apt-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-x | update_apt-panopticon | 4 |
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 | ||
| 3 | cd /var/www/html/apt-panopticon/apt-panopticon_cgp | 3 | cd /var/www/html/apt-panopticon/apt-panopticon_cgp |
| 4 | if [ -f .git ] ; then | 4 | if [ -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 * |
| 7 | fi | 7 | fi |
| 8 | cd /var/www/html/apt-panopticon/apt-panopticon | 8 | cd /var/www/html/apt-panopticon/apt-panopticon |
| 9 | if [ -f .git ] ; then | 9 | if [ -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 * |
| 12 | fi | 12 | fi |
