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:40] – [Git Fix] Sean Rhoneservers:bsd:nginx:mybb [2026/01/09 17:22] (current) – [MySQL Connection] Sean Rhone
Line 180: Line 180:
 <code> <code>
 #!/bin/sh #!/bin/sh
 +
 +cd '/tmp'
  
 '/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' reset --hard 'origin/feature'"
 '/usr/bin/su' -m 'www' -c "'/usr/local/bin/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' pull 'origin' 'feature' --rebase"
 +
 +'/bin/sync'
  
 # End</code> # End</code>
Line 339: 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 357: 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.1767987616.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