diff options
Diffstat (limited to '')
-rwxr-xr-x | update_apt-panopticon | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/update_apt-panopticon b/update_apt-panopticon new file mode 100755 index 0000000..b70f4c3 --- /dev/null +++ b/update_apt-panopticon | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | cd /var/www/html/apt-panopticon/apt-panopticon_cgp | ||
4 | #git pull > /dev/null | ||
5 | #chown -R mirrors:www-data * | ||
6 | cd /var/www/html/apt-panopticon/apt-panopticon | ||
7 | #git pull > /dev/null | ||
8 | #chown -R mirrors:www-data * | ||
9 | |||
10 | if [ ! -f apt-panopticon.lock ] ; then | ||
11 | rm ../results; ln -s apt-panopticon/results_old ../results | ||
12 | flock -n apt-panopticon.lock ./apt-panopticon.lua && rm apt-panopticon.lock | ||
13 | rm ../results; ln -s apt-panopticon/results ../results | ||
14 | fi | ||
15 | |||
16 | #chown -R mirrors:www-data /var/www/html/SledjHamr/apt-panopticon/results | ||