This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
pkexec chown -R root:root /etc | |
pkexec find /etc -type f -exec chmod 644 {} + | |
pkexec find /etc -type d -exec chmod 755 {} + | |
pkexec chmod 755 /etc/init.d/* /etc/rc.local /etc/network/* /etc/cron.*/* | |
pkexec chmod 400 /etc/ssh/ssh*key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CONTAINERS=$(docker ps -a -q) | |
IMAGES=$(docker images -a -q) | |
VOLUMES=$(docker volume ls -q) | |
echo "" | |
if [ -z "$CONTAINERS" ] | |
then | |
echo "No containers" |
OlderNewer