Skip to content

Commit

Permalink
v6.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel (Fourdee) committed Jul 18, 2018
1 parent 5315554 commit c25b53b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ DietPi-Drive_Manager | Resolved an issue where the program could remove a non-em
DietPi-Software | Resolved a potential Mono instability issue with Radarr, Sonarr and Jackett, due to using '--optimize=all --server'. This has now been removed for new installations. Many thanks to @hellfirehd for debugging/testing and @Taloth for dev insights: https://github.com/Fourdee/DietPi/issues/1896
DietPi-Software | Mono: Temp mono files are now cleared from memory once installed, preventing out of memory errors for additional software installs afterwards: https://github.com/Fourdee/DietPi/issues/1877#issuecomment-403856446
DietPi-Software | Xserver: Resolved rarely occuring uninstall issus by not purging dependencies, but leaving them for autoremove: https://github.com/Fourdee/DietPi/issues/1921
DietPi-Software | MineOS: Resolved failed installation due to incompatibilities with nodejs v10. v8 is now installed: https://github.com/Fourdee/DietPi/issues/1880
DietPi-Update | Resolved an issue where incorrect version would be displayed, once update was completed. This is due to '| tee' on a function, making var changes local: https://github.com/Fourdee/DietPi/issues/1877#issuecomment-403866204

-----------------------------------------------------------------------------------------------------------
Expand Down
24 changes: 14 additions & 10 deletions dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -7740,7 +7740,9 @@ _EOF_
chown -R ubooquity:dietpi $G_FP_DIETPI_USERDATA/ubooquity

# - Mineos
chown -R mineos:mineos $G_FP_DIETPI_USERDATA/mineos/serverdata
chown -R mineos:dietpi $G_FP_DIETPI_USERDATA/mineos
chown -R mineos:dietpi /var/games/minecraft
chown mineos:dietpi /etc/ssl/certs/mineos*

# - cubrite
chown -R cuberite:dietpi $G_FP_DIETPI_USERDATA/cubrite
Expand Down Expand Up @@ -10725,7 +10727,7 @@ _EOF_

Banner_Configuration

# - Add underprivilged user for web access
# - Add underprivilged user for web access | no longer works, could be a nodejs v8 issue?
useradd mineos
echo -e "$GLOBAL_PW\n$GLOBAL_PW\n" | passwd mineos

Expand All @@ -10745,21 +10747,23 @@ _EOF_
mkdir -p /var/games
mkdir -p $G_FP_DIETPI_USERDATA/mineos/serverdata
ln -sf $G_FP_DIETPI_USERDATA/mineos/serverdata /var/games/minecraft
chown -R mineos:mineos /var/games/minecraft

# - setup SSL cert
cd $G_FP_DIETPI_USERDATA/mineos/minecraft
./generate-sslcert.sh
cd "$HOME"

# - Supervisor service
cp $G_FP_DIETPI_USERDATA/mineos/minecraft/init/supervisor_conf /etc/supervisor/conf.d/mineos.conf

# - correct the node filepath for supervisor mineos
sed -i '/^command=/c\command=/usr/local/bin/node webui.js' /etc/supervisor/conf.d/mineos.conf

# - Set directory to G_FP_DIETPI_USERDATA
sed -i "/^directory=/c\directory=$G_FP_DIETPI_USERDATA/mineos/minecraft" /etc/supervisor/conf.d/mineos.conf
cat << _EOF_ > /etc/supervisor/conf.d/mineos.conf
[program:mineos]
command=/usr/local/bin/node webui.js
directory=$G_FP_DIETPI_USERDATA/mineos/minecraft
environment=HOME=$G_FP_DIETPI_USERDATA/mineos
user=root
autostart=true
autorestart=true
redirect_stderr=true
_EOF_

supervisorctl reload

Expand Down

0 comments on commit c25b53b

Please sign in to comment.