aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-09 17:10:15 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-09 17:10:15 +0200
commit9acfd0463b4778e4a28f4b825418eb410d7027fa (patch)
tree05b31b624faa9f6e2c037e9bcf01cf7e9cec0dfc
parentLimit of 200 commits to see if that's faster (diff)
downloadjoe-scripts-9acfd0463b4778e4a28f4b825418eb410d7027fa.tar.gz
joe-scripts-9acfd0463b4778e4a28f4b825418eb410d7027fa.tar.bz2
joe-scripts-9acfd0463b4778e4a28f4b825418eb410d7027fa.tar.xz
joe-scripts-9acfd0463b4778e4a28f4b825418eb410d7027fa.tar.zst
joe-scripts-9acfd0463b4778e4a28f4b825418eb410d7027fa.zip
Try
-rwxr-xr-xsrc/update/gitjoe.pl4
-rwxr-xr-xsrc/update/vps.pl4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/update/gitjoe.pl b/src/update/gitjoe.pl
index 2655851..28d8709 100755
--- a/src/update/gitjoe.pl
+++ b/src/update/gitjoe.pl
@@ -44,10 +44,12 @@ sub stagit_generate {
mkdir($repos[$i], 0755);
chdir($site_dir . $user . '/' . $repos[$i] . '/');
$repos[$i] = $repos[$i] . '.git';
+ mkdir($site_dir . $user . '/', 0755);
+ print "Repoing " . $repos[$i] . "\n";
system(
'/usr/local/bin/dash',
'-c',
- '/usr/local/bin/stagit -l 200 ' . $home_dir . $repos[$i] . '/'
+ '/usr/local/bin/stagit -c ' . $site_dir . $user . $repos[$i] . '.cache -l 200 ' . $home_dir . $repos[$i] . '/'
);
copy('../style.css', './style.css');
copy('../logo.png', './logo.png');
diff --git a/src/update/vps.pl b/src/update/vps.pl
index 3f98594..8b4cf38 100755
--- a/src/update/vps.pl
+++ b/src/update/vps.pl
@@ -8,12 +8,12 @@ sub main {
system(
'/usr/local/bin/dash',
'-c',
- 'git -C /usr/local/www/jozan pull >/dev/null 2>&1'
+ 'git -C /usr/local/www/jozan pull origin master>/dev/null 2>&1'
);
system(
'/usr/local/bin/dash',
'-c',
- 'git -C /usr/local/www/git-jozan pull >/dev/null 2>&1'
+ 'git -C /usr/local/www/git-jozan pull origin master>/dev/null 2>&1'
);
system(
'/usr/local/bin/dash',