Skip to content

Commit

Permalink
nc-automount: udiskie verbose output
Browse files Browse the repository at this point in the history
Signed-off-by: nachoparker <[email protected]>
  • Loading branch information
nachoparker committed Jan 20, 2021
1 parent b978184 commit 117b8ea
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions bin/ncp/SYSTEM/nc-automount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Before=mysqld.service dphys-swapfile.service fail2ban.service smbd.service nfs-s
[Service]
Restart=always
ExecStartPre=/bin/bash -c "rmdir /media/* || true"
ExecStart=/usr/bin/udiskie -NTF
ExecStart=/usr/bin/udiskie -NTFv
[Install]
WantedBy=multi-user.target
Expand Down Expand Up @@ -85,19 +85,15 @@ EOF
configure()
{
[[ $ACTIVE != "yes" ]] && {
systemctl stop nc-automount
systemctl stop nc-automount-links
systemctl disable nc-automount
systemctl disable nc-automount-links
systemctl disable --now nc-automount
systemctl disable --now nc-automount-links
rm -rf /etc/systemd/system/{mariadb,nfs-server,dphys-swapfile,fail2ban}.service.d
systemctl daemon-reload
echo "automount disabled"
return 0
}
systemctl enable nc-automount
systemctl enable nc-automount-links
systemctl start nc-automount
systemctl start nc-automount-links
systemctl enable --now nc-automount
systemctl enable --now nc-automount-links

# create delays in some units
mkdir -p /etc/systemd/system/mariadb.service.d
Expand Down

0 comments on commit 117b8ea

Please sign in to comment.