Fix permissions (again)

This commit is contained in:
iamromulan
2024-04-13 22:55:24 -04:00
parent 221178abb0
commit dd98716a44
3 changed files with 3 additions and 5 deletions

View File

@@ -51,7 +51,7 @@ remount_rw() {
remount_ro() { remount_ro() {
mount -o remount,ro / mount -o remount,ro /
} }
remount_rw
uninstall_simpleadmin() { uninstall_simpleadmin() {
echo "Uninstalling Simpleadmin..." echo "Uninstalling Simpleadmin..."
@@ -77,7 +77,6 @@ uninstall_simpleadmin() {
rm /lib/systemd/system/multi-user.target.wants/ttyd.service rm /lib/systemd/system/multi-user.target.wants/ttyd.service
rm /bin/ttyd rm /bin/ttyd
echo -e "\e[1;32mttyd has been uninstalled.\e[0m" echo -e "\e[1;32mttyd has been uninstalled.\e[0m"
remount_ro
echo "Uninstallation process completed." echo "Uninstallation process completed."
} }

View File

@@ -56,7 +56,7 @@ remount_rw() {
remount_ro() { remount_ro() {
mount -o remount,ro / mount -o remount,ro /
} }
remount_rw
# Function to remove Simple Firewall # Function to remove Simple Firewall
uninstall_simple_firewall() { uninstall_simple_firewall() {
echo "Uninstalling Simplefirewall..." echo "Uninstalling Simplefirewall..."

View File

@@ -53,7 +53,7 @@ remount_rw() {
remount_ro() { remount_ro() {
mount -o remount,ro / mount -o remount,ro /
} }
remount_rw
uninstall_at_socat() { uninstall_at_socat() {
echo -e "\033[0;32mRemoving installed AT Socat Bridge services...\033[0m" echo -e "\033[0;32mRemoving installed AT Socat Bridge services...\033[0m"
systemctl stop at-telnet-daemon > /dev/null 2>&1 systemctl stop at-telnet-daemon > /dev/null 2>&1
@@ -80,7 +80,6 @@ uninstall_at_socat() {
} }
install_at_socat() { install_at_socat() {
remount_rw
# Install service units # Install service units
echo -e "\033[0;32mInstalling AT Socat Bridge services...\033[0m" echo -e "\033[0;32mInstalling AT Socat Bridge services...\033[0m"
mkdir $SOCAT_AT_DIR mkdir $SOCAT_AT_DIR