Add simple shell function to remotely run apt updates

This is a very simple function just to save some typing.  No fancy logic is
included in here, and that's deliberate.
This commit is contained in:
Daniel - 2020-08-23 12:09:49 +02:00
parent 86ded865f6
commit a709a2145f
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 4 additions and 0 deletions

View File

@ -12,4 +12,8 @@ function encode-with-ffmpeg() {
ffmpeg -y -i $movie -c:v libx264 -preset veryslow -b:v 630k -pass 1 -c:a aac -b:a 128k -f mp4 /dev/null && \
ffmpeg -i $movie -c:v libx264 -preset veryslow -b:v 630k -pass 2 -c:a aac -b:a 128k $output
function run-remote-apt-upgrade() {
host=$1
ssh "$host" -t "tmux new-session -d -A -s apt-updates \; send-keys 'sudo apt clean && sudo apt update && sudo apt upgrade && sudo apt autoremove && tripwire --check --interactive' ENTER \; attach"
}