forked from indymedia/epicyon
Change example install directory to /opt
parent
cd90434ce3
commit
19703c0336
10
README.md
10
README.md
|
@ -41,7 +41,7 @@ The following instructions install Epicyon to the **/etc** directory. It's not e
|
||||||
Add a dedicated user so that we don't have to run as root.
|
Add a dedicated user so that we don't have to run as root.
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
adduser --system --home=/etc/epicyon --group epicyon
|
adduser --system --home=/opt/epicyon --group epicyon
|
||||||
```
|
```
|
||||||
|
|
||||||
Edit */etc/systemd/system/epicyon.service* and add the following:
|
Edit */etc/systemd/system/epicyon.service* and add the following:
|
||||||
|
@ -56,8 +56,8 @@ After=network.target
|
||||||
Type=simple
|
Type=simple
|
||||||
User=epicyon
|
User=epicyon
|
||||||
Group=epicyon
|
Group=epicyon
|
||||||
WorkingDirectory=/etc/epicyon
|
WorkingDirectory=/opt/epicyon
|
||||||
ExecStart=/usr/bin/python3 /etc/epicyon/epicyon.py --port 443 --proxy 7156 --domain YOUR_DOMAIN --registration open
|
ExecStart=/usr/bin/python3 /opt/epicyon/epicyon.py --port 443 --proxy 7156 --domain YOUR_DOMAIN --registration open
|
||||||
Environment=USER=epicyon
|
Environment=USER=epicyon
|
||||||
Restart=always
|
Restart=always
|
||||||
StandardError=syslog
|
StandardError=syslog
|
||||||
|
@ -66,13 +66,13 @@ StandardError=syslog
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
```
|
```
|
||||||
|
|
||||||
Here the server was installed to */etc/epicyon*, but you can change that to wherever you installed it.
|
Here the server was installed to */opt/epicyon*, but you can change that to wherever you installed it.
|
||||||
|
|
||||||
Then run the daemon:
|
Then run the daemon:
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
systemctl enable epicyon
|
systemctl enable epicyon
|
||||||
chown -R epicyon:epicyon /etc/epicyon
|
chown -R epicyon:epicyon /opt/epicyon
|
||||||
systemctl start epicyon
|
systemctl start epicyon
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
if [ -d /etc/epicyon ]; then
|
||||||
cd /etc/epicyon || exit 0
|
cd /etc/epicyon || exit 0
|
||||||
|
else
|
||||||
|
cd /opt/epicyon || exit 0
|
||||||
|
fi
|
||||||
git remote set-url origin https://code.freedombone.net/bashrc/epicyon.git
|
git remote set-url origin https://code.freedombone.net/bashrc/epicyon.git
|
||||||
git checkout main
|
git checkout main
|
||||||
|
|
|
@ -1238,7 +1238,7 @@
|
||||||
</p>
|
</p>
|
||||||
<div class="shell">
|
<div class="shell">
|
||||||
<p>sudo su</p>
|
<p>sudo su</p>
|
||||||
<p>adduser --system --home=/etc/epicyon --group epicyon</p>
|
<p>adduser --system --home=/opt/epicyon --group epicyon</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="intro">
|
<p class="intro">
|
||||||
|
@ -1247,14 +1247,14 @@
|
||||||
<div class="shell">
|
<div class="shell">
|
||||||
<p>cd /etc</p>
|
<p>cd /etc</p>
|
||||||
<p>git clone https://gitlab.com/bashrc2/epicyon</p>
|
<p>git clone https://gitlab.com/bashrc2/epicyon</p>
|
||||||
<p>chown -R epicyon:epicyon /etc/epicyon</p>
|
<p>chown -R epicyon:epicyon /opt/epicyon</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="intro">
|
<p class="intro">
|
||||||
If you want to use a theme other than the default one:
|
If you want to use a theme other than the default one:
|
||||||
</p>
|
</p>
|
||||||
<div class="shell">
|
<div class="shell">
|
||||||
<p>cd /etc/epicyon</p>
|
<p>cd /opt/epicyon</p>
|
||||||
<p>theme purple</p>
|
<p>theme purple</p>
|
||||||
</div>
|
</div>
|
||||||
<p class="intro">
|
<p class="intro">
|
||||||
|
@ -1280,8 +1280,8 @@
|
||||||
Type=simple<br>
|
Type=simple<br>
|
||||||
User=epicyon<br>
|
User=epicyon<br>
|
||||||
Group=epicyon<br>
|
Group=epicyon<br>
|
||||||
WorkingDirectory=/etc/epicyon<br>
|
WorkingDirectory=/opt/epicyon<br>
|
||||||
ExecStart=/usr/bin/python3 /etc/epicyon/epicyon.py --port 443 --proxy 7156 --domain YOUR_DOMAIN --registration open --debug<br>
|
ExecStart=/usr/bin/python3 /opt/epicyon/epicyon.py --port 443 --proxy 7156 --domain YOUR_DOMAIN --registration open --debug<br>
|
||||||
Environment=USER=epicyon<br>
|
Environment=USER=epicyon<br>
|
||||||
Restart=always<br>
|
Restart=always<br>
|
||||||
StandardError=syslog<br>
|
StandardError=syslog<br>
|
||||||
|
|
Loading…
Reference in New Issue