Fix bug for 2.1
This commit is contained in:
parent
8798f43866
commit
ded285c533
|
@ -38,7 +38,7 @@ audit () {
|
|||
else
|
||||
warn "$PARTITION is not partition in /etc/fstab, check tmp.mount service"
|
||||
if [ -e $TMPMOUNTO ]; then
|
||||
if [ $(systemctl status $TMPMOUNTNAME | grep -c "Active:.active") -eq 1 ]; then
|
||||
if [ $(systemctl | grep -c "tmp.mount[[:space:]]*loaded[[:space:]]active[[:space:]]mounted") -eq 1 ]; then
|
||||
ok "$TMPMOUNTNAME service is active!"
|
||||
is_mounted "$PARTITION"
|
||||
if [ $FNRET -gt 0 ]; then
|
||||
|
@ -72,7 +72,7 @@ apply () {
|
|||
$SUDO_CMD systemctl daemon-reload
|
||||
$SUDO_CMD systemctl start "$TMPMOUNTNAME"
|
||||
elif [ $FNRET = 4 ]; then
|
||||
$SUDO_CMD systemctl enable "$TMPMOUNTNAME"
|
||||
$SUDO_CMD systemctl enable "$TMPMOUNTO"
|
||||
$SUDO_CMD systemctl daemon-reload
|
||||
$SUDO_CMD systemctl start "$TMPMOUNTNAME"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue