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 | |
# update all containers | |
# execute on host | |
# list of container ids we need to iterate through | |
containers=$(pct list | tail -n +2 | cut -f1 -d' ') | |
function update_container() { | |
container=$1 | |
echo "[UPDATER] Updating $container..." |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/sh | |
#Find a date in file name: | |
#ls | grep -E $datematch | |
if [ "$(whoami)" != "root" ]; then | |
echo Please run this script as root. | |
exit | |
fi |