User Tools

Site Tools


servers:bsd:nginx:mybb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
servers:bsd:nginx:mybb [2026/01/09 14:34] – [Backup] Sean Rhoneservers:bsd:nginx:mybb [2026/01/09 17:22] (current) – [MySQL Connection] Sean Rhone
Line 181: Line 181:
 #!/bin/sh #!/bin/sh
  
-su -m 'www' -c "git -C '/usr/local/www/forum' reset --hard 'origin/feature'" +cd '/tmp' 
-su -m 'www' -c "git -C '/usr/local/www/forum' pull 'origin' 'feature' --rebase"+ 
 +'/usr/bin/su-m 'www' -c "'/usr/local/bin/git-C '/usr/local/www/forum' reset --hard 'origin/feature'" 
 +'/usr/bin/su-m 'www' -c "'/usr/local/bin/git-C '/usr/local/www/forum' pull 'origin' 'feature' --rebase" 
 + 
 +'/bin/sync'
  
 # End</code> # End</code>
Line 214: Line 218:
 #!/bin/sh #!/bin/sh
  
-su -m 'www' -c "'/usr/local/bin/git' -C '/usr/local/www/blog' gc --aggressive --prune='all'" +cd '/tmp' 
-su -m 'www' -c "'/usr/local/bin/git' -C '/usr/local/www/blog' fsck --full --strict"+ 
 +'/usr/bin/su-m 'www' -c "'/usr/local/bin/git' -C '/usr/local/www/forum' gc --aggressive --prune='all'" 
 +'/usr/bin/su-m 'www' -c "'/usr/local/bin/git' -C '/usr/local/www/forum' fsck --full --strict"
  
 # End</code> # End</code>
Line 224: Line 230:
  
   * :!: Set email for ''user.email''   * :!: Set email for ''user.email''
-  * :!: [[#initial_setup|Initial set-up]] needs re-completed for database connection ((re-use existing details)) 
  
   mkdir -p ~/'.local/scripts/www/forum' && ee ~/'.local/scripts/www/forum/git-fix.sh' && chmod +x ~/'.local/scripts/www/forum/git-fix.sh'   mkdir -p ~/'.local/scripts/www/forum' && ee ~/'.local/scripts/www/forum/git-fix.sh' && chmod +x ~/'.local/scripts/www/forum/git-fix.sh'
Line 338: Line 343:
   su   su
  
-  rm -Rf '/usr/local/www/forum'+  ls '/home/'$USER'/mybb-files-'*'.tar.gz' && rm -Rf '/usr/local/www/forum'
  
   tar -xzf '/home/'$USER'/mybb-files-'*'.tar.gz' -C '/usr/local/www' 'forum' && chown -R 'www':'www' '/usr/local/www/forum' && sync   tar -xzf '/home/'$USER'/mybb-files-'*'.tar.gz' -C '/usr/local/www' 'forum' && chown -R 'www':'www' '/usr/local/www/forum' && sync
Line 356: Line 361:
   su -   su -
  
-  su -m 'www' -c "ee '/usr/local/www/forum/inc/config.php'"+  su -m 'www' -c "ee '/usr/local/www/forum/inc/config.php'" && clear
  
 <code>$config['database']['hostname'] = '127.0.0.1';</code> <code>$config['database']['hostname'] = '127.0.0.1';</code>
  
/usr/local/www/wiki/data/attic/servers/bsd/nginx/mybb.1767987298.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki