Skip to content

Commit 781f1ee

Browse files
Merge pull request 'Delete group on uninstall. Suppress error messages' (#120) from uninstall20230329 into main
Reviewed-on: pulls/120
2 parents 65167cc + 2efcb52 commit 781f1ee

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

_install_steps/0quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Otherwise, you can jump ahead to using the [Nodeyez-Config]({% link _install_ste
5050

5151
Uninstalling is similar, simply run the following
5252
```shell
53-
wget -qO- https://nodeyez.com/uninstall.sh | sudo bash
53+
wget -q -O /tmp/uninstall.sh https://nodeyez.com/uninstall.sh && chmod +x /tmp/uninstall.sh && sudo /tmp/uninstall.sh
5454
```
5555

5656
An existing NGINX instance will be left running after Nodeyez is removed.

_install_steps/7websitedashboard.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ Drop in the Nodeyez XSLT Templates used for building directory listings
6363
sudo cp /home/nodeyez/nodeyez/scripts/nginx/nodeyez*.xslt /etc/nginx/
6464
```
6565

66+
If the above statement fails with a cannot stat error, use this
67+
68+
```shell
69+
sudo cp /home/nodeyez/nodeyez/scripts/nginx/nodeyez_dirlistblack.xslt /etc/nginx/
70+
71+
sudo cp /home/nodeyez/nodeyez/scripts/nginx/nodeyez_imagegallery128.xslt /etc/nginx/
72+
73+
sudo cp /home/nodeyez/nodeyez/scripts/nginx/nodeyez_imagegallery.xslt /etc/nginx/
74+
```
75+
6676
## Copy Nodeyez SSL Config
6777

6878
The prebuilt SSL configuration files include references to the cert and key, common parameters, and proxy definitions.
@@ -127,6 +137,18 @@ Once complete, set the ownership
127137
sudo chown root:root -R /etc/nginx/
128138
```
129139

140+
## Grant Group and Execute permission
141+
142+
This will assign group to nginx, and also give it execute permission to the
143+
group so that members can traverse the folders of nodeyez
144+
145+
```shell
146+
sudo gpasswd -a www-data nodeyez
147+
sudo chmod g+x /home/nodeyez
148+
sudo chmod g+x /home/nodeyez/nodeyez
149+
sudo chmod g+x /home/nodeyez/nodeyez/imageoutput
150+
```
151+
130152
## Configure Firewall rules
131153

132154
The Nodeyez website dashboard uses port 907. Enable access to view it.

uninstall.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ DELETED_USER=0
7272
DELETED_CONFIGTOOL=0
7373

7474
# Remove Nodeyez services
75-
systemctl reset-failed nodeyez*
75+
systemctl reset-failed nodeyez* 2>&1
7676
HAS_SERVICES=$(systemctl --type=service | grep nodeyez | sed -n 1p | wc -l)
7777
if [ $HAS_SERVICES -ge 1 ]; then
7878
section_delete=$(prompt_delete "Delete all Nodeyez services?")
@@ -218,9 +218,11 @@ if id nodeyez &>/dev/null; then
218218
if [ -z ${EXT_DRIVE_MOUNT+x} ]; then
219219
echo "- deleting Nodeyez user and home folder"
220220
deluser --remove-home nodeyez
221+
groupdel nodeyez
221222
else
222223
echo "- deleting Nodeyez user and home folder mapped to external drive"
223224
deluser --remove-home nodeyez
225+
groupdel nodeyez
224226
echo "- removing link for /home/nodeyez to external drive"
225227
unlink /home/nodeyez
226228
fi

0 commit comments

Comments
 (0)