Home  Main Website     Git     Matrix     Searx    

PwOSS - Wiki

Changes in 9aabbf7: changed gem path to new default path
content/pwoss/wiki.md
... ...
@@ -235,9 +235,9 @@ gem update
235 235
236 236
Copy `config.rb`, `public` and the `templates` into your wiki.
237 237
```
238
-cp ~/.gem/ruby/2.7.0/gems/gollum-5.*/config.rb ~/your/wiki/path/config.rb
239
-cp -r ~/.gem/ruby/2.7.0/gems/gollum-5.*/lib/gollum/public/gollum ~/your/wiki/path/public
240
-cp -r ~/.gem/ruby/2.7.0/gems/gollum-5.*/lib/gollum/templates ~/your/wiki/path/public/templates
238
+cp ~/.local/share/gem/ruby/2.7.0/gems/gollum-5.*/config.rb ~/your/wiki/path/config.rb
239
+cp -r ~/.local/share/gem/ruby/2.7.0/gems/gollum-5.*/lib/gollum/public/gollum ~/your/wiki/path/public
240
+cp -r ~/.local/share/gem/ruby/2.7.0/gems/gollum-5.*/lib/gollum/templates ~/your/wiki/path/public/templates
241 241
```
242 242
243 243
 
... ...
@@ -257,9 +257,9 @@ After=network.target
257 257
[Service]
258 258
Type=simple
259 259
User=USER
260
-Group=USER
260
+Group=GROUP
261 261
WorkingDirectory=/home/USER/your/wiki/path
262
-ExecStart=/bin/bash -c "PATH=/home/USER/.gem/ruby/2.7.0/bin:$PATH exec gollum --config /home/USER/your/wiki/path/config.rb --template-dir /home/USER/your/wiki/path/public/templates/ --css"
262
+ExecStart=/bin/bash -c "PATH=/home/USER/.local/share/gem/ruby/2.7.0/bin:$PATH exec gollum --config /home/USER/your/wiki/path/config.rb --template-dir /home/USER/your/wiki/path/public/templates/ --css"
263 263
Restart=on-abort
264 264
265 265
[Install]
... ...
@@ -314,11 +314,11 @@ Group=USER
314 314
315 315
# your-wiki
316 316
#WorkingDirectory=/home/USER/your/wiki/path
317
-#ExecStart=/bin/bash -c "PATH=/home/USER/.gem/ruby/2.7.0/bin:$PATH exec gollum --config /home/USER/your/wiki/path/config.rb --template-dir /home/USER/your/wiki/path/public/templates/ --css"
317
+#ExecStart=/bin/bash -c "PATH=/home/USER/.local/share/gem/ruby/2.7.0/bin:$PATH exec gollum --config /home/USER/your/wiki/path/config.rb --template-dir /home/USER/your/wiki/path/public/templates/ --css"
318 318
319 319
# PwOSS - Wiki
320 320
WorkingDirectory=/home/USER/pwoss/path/to/the/Wiki
321
-ExecStart=/bin/bash -c "PATH=/home/USER/.gem/ruby/2.7.0/bin:$PATH exec gollum --config /home/USER/your/wiki/path/config.rb --template-dir /home/USER/pwoss/path/to/the/Wiki/public/templates/ --css"
321
+ExecStart=/bin/bash -c "PATH=/home/USER/.local/share/gem/ruby/2.7.0/bin:$PATH exec gollum --config /home/USER/your/wiki/path/config.rb --template-dir /home/USER/pwoss/path/to/the/Wiki/public/templates/ --css"
322 322
323 323
Restart=on-abort
324 324