diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/update/gitjoe.pl | 4 | ||||
-rwxr-xr-x | 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', |