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 [2025/10/30 22:48] – [Download Source] Sean Rhoneservers:bsd:nginx:mybb [2025/10/31 02:24] (current) – [Updater] Sean Rhone
Line 4: Line 4:
   * [[information:realm_of_espionage|Realm of Espionage]]   * [[information:realm_of_espionage|Realm of Espionage]]
   * https://forums.realmofespionage.xyz   * https://forums.realmofespionage.xyz
- 
-  * :!: WIP 
  
 ===== Prerequisites ===== ===== Prerequisites =====
Line 130: Line 128:
  
   * Database Engine: ''MySQL Improved''   * Database Engine: ''MySQL Improved''
 +  * Database Server Hostname: ''127.0.0.1''
   * Table Encoding: ''4-Byte UTF-8 Unicode''   * Table Encoding: ''4-Byte UTF-8 Unicode''
  
Line 158: Line 157:
 ===== Updater ===== ===== Updater =====
  
-  mkdir -p ~/'.local/scripts/www/blog' && ee ~/'.local/scripts/www/blog/updater.sh' && chmod +x ~/'.local/scripts/www/blog/updater.sh'+  mkdir -p ~/'.local/scripts/www/forum' && ee ~/'.local/scripts/www/forum/updater.sh' && chmod +x ~/'.local/scripts/www/forum/updater.sh'
  
 <code> <code>
 #!/bin/sh #!/bin/sh
  
-su -m 'www' -c "git -C '/usr/local/www/blog' reset --hard 'origin/master'" +su -m 'www' -c "git -C '/usr/local/www/forum' reset --hard 'origin/feature'" 
-su -m 'www' -c "git -C '/usr/local/www/blog' pull 'origin' 'master' --rebase"+su -m 'www' -c "git -C '/usr/local/www/forum' pull 'origin' 'feature' --rebase"
  
 # End</code> # End</code>
  
-  ~/'.local/scripts/www/blog/updater.sh'+  ~/'.local/scripts/www/forum/updater.sh'
  
-  su 'root' -c ~/'.local/scripts/www/blog/updater.sh'+  su 'root' -c ~/'.local/scripts/www/forum/updater.sh'
  
 ===== Maintenance ===== ===== Maintenance =====
Line 222: Line 221:
  
   su 'root' -c ~/'.local/scripts/www/forum/git-fix.sh'   su 'root' -c ~/'.local/scripts/www/forum/git-fix.sh'
 +
 +====== cron ======
 +
 +===== Updater =====
 +
 +  * 05:00AM Every day
 +
 +  su -
 +
 +  ee '/etc/cron.d/forum-updater'
 +
 +<code>
 +#
 +SHELL=/bin/sh
 +
 +0 5 * * * root '/home/espionage724/.local/scripts/www/forum/updater.sh'
 +
 +# End</code>
  
 ====== Backup ====== ====== Backup ======
/usr/local/www/wiki/data/attic/servers/bsd/nginx/mybb.1761878881.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