|
@@ -346,6 +346,11 @@ function install_fedwiki {
|
346
|
346
|
exit 5293524
|
347
|
347
|
fi
|
348
|
348
|
|
|
349
|
+ if [ ! -d /usr/local/lib/node_modules/wiki ]; then
|
|
350
|
+ echo $'wiki directory not found /usr/local/lib/node_modules/wiki'
|
|
351
|
+ exit 6285324
|
|
352
|
+ fi
|
|
353
|
+
|
349
|
354
|
FEDWIKI_ONION_HOSTNAME=$(add_onion_service fedwiki 80 ${FEDWIKI_ONION_PORT})
|
350
|
355
|
|
351
|
356
|
echo '[Unit]' > /etc/systemd/system/fedwiki.service
|
|
@@ -356,7 +361,7 @@ function install_fedwiki {
|
356
|
361
|
echo '[Service]' >> /etc/systemd/system/fedwiki.service
|
357
|
362
|
echo 'User=fedwiki' >> /etc/systemd/system/fedwiki.service
|
358
|
363
|
echo 'Group=fedwiki' >> /etc/systemd/system/fedwiki.service
|
359
|
|
- echo "WorkingDirectory=$FEDWIKI_DATA" >> /etc/systemd/system/fedwiki.service
|
|
364
|
+ echo "WorkingDirectory=/usr/local/lib/node_modules/wiki" >> /etc/systemd/system/fedwiki.service
|
360
|
365
|
echo "ExecStart=/usr/local/bin/wiki --data $FEDWIKI_DATA -p $FEDWIKI_PORT" >> /etc/systemd/system/fedwiki.service
|
361
|
366
|
echo 'StandardOutput=syslog' >> /etc/systemd/system/fedwiki.service
|
362
|
367
|
echo 'StandardError=syslog' >> /etc/systemd/system/fedwiki.service
|