mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-07 13:45:42 +12:00
Fix permissons
This commit is contained in:
parent
c27e50f6af
commit
f3a3566e8f
3 changed files with 3 additions and 8 deletions
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
|
@ -108,9 +108,8 @@ jobs:
|
||||||
dos2unix /mnt/fucking-windows/Debian64/DEBIAN/postinst
|
dos2unix /mnt/fucking-windows/Debian64/DEBIAN/postinst
|
||||||
dos2unix /mnt/fucking-windows/Debian64/DEBIAN/postrm
|
dos2unix /mnt/fucking-windows/Debian64/DEBIAN/postrm
|
||||||
dos2unix /mnt/fucking-windows/Debian64/etc/systemd/system/HISP.service
|
dos2unix /mnt/fucking-windows/Debian64/etc/systemd/system/HISP.service
|
||||||
chmod 644 -R /mnt/fucking-windows/Debian64
|
chmod 755 -R /mnt/fucking-windows/Debian64
|
||||||
chmod +x /mnt/fucking-windows/Debian64/usr/bin/HISPd
|
chmod +x /mnt/fucking-windows/Debian64/usr/bin/HISPd
|
||||||
chmod 755 -R /mnt/fucking-windows/Debian64/DEBIAN
|
|
||||||
mkdir debpackage
|
mkdir debpackage
|
||||||
dpkg-deb --build /mnt/fucking-windows/Debian64
|
dpkg-deb --build /mnt/fucking-windows/Debian64
|
||||||
mv /mnt/fucking-windows/Debian64.deb debpackage/HISP.deb
|
mv /mnt/fucking-windows/Debian64.deb debpackage/HISP.deb
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
useradd horseisle
|
useradd horseisle
|
||||||
chown -R horseisle /etc/hisp
|
chown -R horseisle:horseisle /etc/hisp
|
||||||
systemctl enable HISP.service
|
systemctl enable HISP.service
|
||||||
systemctl start HISP
|
systemctl start HISP
|
||||||
|
|
||||||
|
|
|
@ -9,16 +9,12 @@ After=mariadb.service
|
||||||
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
RestartSec=5s
|
|
||||||
Restart=on-abort
|
|
||||||
|
|
||||||
Type=simple
|
Type=simple
|
||||||
|
|
||||||
# Disable access to features HISP doesnt need
|
# Disable access to features HISP doesnt need
|
||||||
# (For security ...)
|
# (For security ...)
|
||||||
ProtectSystem=full
|
ProtectSystem=full
|
||||||
PrivateDevices=true
|
PrivateDevices=true
|
||||||
ProtectHome=true
|
|
||||||
|
|
||||||
StandardError=syslog+console
|
StandardError=syslog+console
|
||||||
StandardOutput=syslog+console
|
StandardOutput=syslog+console
|
||||||
|
@ -29,7 +25,7 @@ Group=horseisle
|
||||||
WorkingDirectory=/etc/hisp
|
WorkingDirectory=/etc/hisp
|
||||||
ExecStart=/usr/bin/HISPd
|
ExecStart=/usr/bin/HISPd
|
||||||
|
|
||||||
Environment=USER=horseisle HOME=/etc/hisp/home HISP_BASE_DIR=/etc/hisp HISP_CONF_FILE=/etc/hisp/server.properties
|
Environment=USER=horseisle HOME=/etc/hisp HISP_BASE_DIR=/etc/hisp HISP_CONF_FILE=/etc/hisp/server.properties
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Add table
Reference in a new issue