From be5e37fcb3f6801b3bd161c624be862970c44be2 Mon Sep 17 00:00:00 2001 From: BrendanTCC Date: Sat, 21 Aug 2021 12:05:08 +1000 Subject: [PATCH] removed remaining references to me and my server of "sysadmin" and "brendo(.org)" --- wplist | 4 ++-- wpset | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wplist b/wplist index 1ac43cf..88d389a 100755 --- a/wplist +++ b/wplist @@ -1,5 +1,5 @@ #!/bin/bash # collates a list of wallpapers available on a samba share. - -ls /home/brendo/Wallpapers > ../wp.list +SHARE_USER="brendo" +ls /home/$SHARE_USER/Wallpapers > ../wp.list echo "list collated, cleaning up and closing" diff --git a/wpset b/wpset index 40692dd..8b6ea73 100755 --- a/wpset +++ b/wpset @@ -1,6 +1,6 @@ #!/bin/bash # WPDL -VERSION="0.1-rev80" +VERSION="0.1-rev81" CONF="/home/$USER/.config/wpdl.conf" source $CONF @@ -29,7 +29,7 @@ function wplist() { function listupdate() { echo "updating wallpaper list..." - ssh $SSH_USER@$SSH_HOST "bash /home/sysadmin/bin/wplist" &> /dev/null + ssh $SSH_USER@$SSH_HOST "bash /home/$SSH_USER/bin/wplist" &> /dev/null } listupdate @@ -65,7 +65,7 @@ else WPLIST=$(wplist | grep $1) if [ "$WPLIST" = "$1" ]; then # download the actual script - curl -s sftp://brendo.org/home/sysadmin/bin/wpdl -u sysadmin: -o wpdl + curl -s sftp://$SSH_HOST/home/$SSH_USER/bin/wpdl -u $SSH_USER: -o wpdl chmod +x wpdl clear $PWD/wpdl $*