mirror of https://gitlab.com/bashrc2/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.
|
||||
|
||||
``` 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:
|
||||
|
@ -56,8 +56,8 @@ After=network.target
|
|||
Type=simple
|
||||
User=epicyon
|
||||
Group=epicyon
|
||||
WorkingDirectory=/etc/epicyon
|
||||
ExecStart=/usr/bin/python3 /etc/epicyon/epicyon.py --port 443 --proxy 7156 --domain YOUR_DOMAIN --registration open
|
||||
WorkingDirectory=/opt/epicyon
|
||||
ExecStart=/usr/bin/python3 /opt/epicyon/epicyon.py --port 443 --proxy 7156 --domain YOUR_DOMAIN --registration open
|
||||
Environment=USER=epicyon
|
||||
Restart=always
|
||||
StandardError=syslog
|
||||
|
@ -66,13 +66,13 @@ StandardError=syslog
|
|||
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:
|
||||
|
||||
``` bash
|
||||
systemctl enable epicyon
|
||||
chown -R epicyon:epicyon /etc/epicyon
|
||||
chown -R epicyon:epicyon /opt/epicyon
|
||||
systemctl start epicyon
|
||||
```
|
||||
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#!/bin/bash
|
||||
cd /etc/epicyon || exit 0
|
||||
if [ -d /etc/epicyon ]; then
|
||||
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 checkout main
|
||||
|
|
|
@ -1238,7 +1238,7 @@
|
|||
</p>
|
||||
<div class="shell">
|
||||
<p>sudo su</p>
|
||||
<p>adduser --system --home=/etc/epicyon --group epicyon</p>
|
||||
<p>adduser --system --home=/opt/epicyon --group epicyon</p>
|
||||
</div>
|
||||
|
||||
<p class="intro">
|
||||
|
@ -1247,14 +1247,14 @@
|
|||
<div class="shell">
|
||||
<p>cd /etc</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>
|
||||
|
||||
<p class="intro">
|
||||
If you want to use a theme other than the default one:
|
||||
</p>
|
||||
<div class="shell">
|
||||
<p>cd /etc/epicyon</p>
|
||||
<p>cd /opt/epicyon</p>
|
||||
<p>theme purple</p>
|
||||
</div>
|
||||
<p class="intro">
|
||||
|
@ -1280,8 +1280,8 @@
|
|||
Type=simple<br>
|
||||
User=epicyon<br>
|
||||
Group=epicyon<br>
|
||||
WorkingDirectory=/etc/epicyon<br>
|
||||
ExecStart=/usr/bin/python3 /etc/epicyon/epicyon.py --port 443 --proxy 7156 --domain YOUR_DOMAIN --registration open --debug<br>
|
||||
WorkingDirectory=/opt/epicyon<br>
|
||||
ExecStart=/usr/bin/python3 /opt/epicyon/epicyon.py --port 443 --proxy 7156 --domain YOUR_DOMAIN --registration open --debug<br>
|
||||
Environment=USER=epicyon<br>
|
||||
Restart=always<br>
|
||||
StandardError=syslog<br>
|
||||
|
|
Loading…
Reference in New Issue