Browse Source

woozie gogs

windhamdavid 2 years ago
parent
commit
5e20a39b6e
2 changed files with 27 additions and 7 deletions
  1. 8 7
      docs/computers/woozie.md
  2. 19 0
      docs/host/Gogs.md

+ 8 - 7
docs/computers/woozie.md

@@ -16,10 +16,10 @@
   - combine A records for subdomains.
   - [lifeasweknowit.com](http://lifeasweknowit.com) is still pointed to the IP
 - custom apache/nginx error pages
-- code.daw
+- ~~code.daw~~
   - ~~email settings for code.daw~~
-  - gogs submodules issue - <https://github.com/gogs/gogs/issues/6436>
-    - patch has landed in 0.13.0+dev, and will be back-ported to 0.12.11 (no ETA).
+  - ~~gogs submodules issue - <https://github.com/gogs/gogs/issues/6436>~~
+    - ~~patch has landed in 0.13.0+dev, and will be back-ported to 0.12.11 (no ETA).~~
 - ~~daw.com/wik/mail/reader/bookmarks~~
   - migrating to php v7.4.33 need to test with 8.1
   - add Redis caching for daw
@@ -245,14 +245,15 @@ sudo vi /etc/rsyslog.d/10-iptables.conf
 sudo vi /etc/logrotate.d/iptables
 /var/log/iptables.log
 {
-  rotate 3
+  su root adm
+  rotate 4
   daily
   missingok
   notifempty
-  delaycompress
   compress
+  delaycompress
   postrotate
-  invoke-rc.d rsyslog rotate > /dev/null
+    /usr/lib/rsyslog/rsyslog-rotate
   endscript
 }
 
@@ -307,7 +308,7 @@ mysqlcheck -o gg --user=******* --password='*******'
 # monitor-cron.sh
 #!/bin/sh
 
-awk '$8=$1$8' /var/log/apache2/other_vhosts_access.log | goaccess -a -o /var/www/dev.davidawindham.com/html/**********/index.html >> /home/*******/logs/cron.log 2>&1
+/usr/bin/awk '$8=$1$8' /var/log/apache2/other_vhosts_access.log | goaccess -a -o /var/www/dev.davidawindham.com/html/**********/index.html >> /home/*******/logs/cron.log 2>&1
 goaccess /var/log/nginx/access.log -o /var/www/dev.davidawindham.com/html/monitor/nginx/index.html --log-format='%h %^[%d:%t %^] "%r" %s %b "%R" "%u" %T' >> /home/*******/logs/cron.log 2>&1
 
 # lets encrypt renew 

+ 19 - 0
docs/host/Gogs.md

@@ -6,6 +6,25 @@ Although it's been forked off as Gitea, I still prefer the original version beca
 
 ## Notes
 
+**23.02.25** - patch for submodules fixes [Issue #6436](https://github.com/gogs/gogs/issues/6436). Upgrading from v0.12.9 -> v.0.12.11 
+
+```bash 
+sudo systemctl stop gogs
+mv gogs gogs_old
+wget https://dl.gogs.io/0.12.11/gogs_0.12.11_linux_amd64.tar.gz
+tar -zxvf gogs_0.12.11_linux_amd64.tar.gz
+cp -R gogs_old/{custom,data,log} gogs
+sudo systemctl start gogs
+# check logs /gogs/log
+```
+
+- Application version - 0.12.11
+- Git version - 2.34.1
+- Go version - go1.18.1
+- Build time - 2023-02-25 07:18:45 UTC
+- Build commit - [c9fba3cb30af0789fcf89098dfcb8f2286ee7d3b](https://github.com/gogs/gogs/commit/c9fba3cb30af0789fcf89098dfcb8f2286ee7d3b)
+
+
 **23.02.10** - upgrading to version 0.12.9 while migrating servers. Dropping supervisor in favor of systemd. 
 
 ```bash