From 9acfd0463b4778e4a28f4b825418eb410d7027fa Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 9 Jul 2020 17:10:15 +0200 Subject: Try --- src/update/gitjoe.pl | 4 +++- src/update/vps.pl | 4 ++-- 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', -- cgit v1.2.3