diff --git a/scripts/99_download.sh b/scripts/99_download.sh index 61257ea..84aa49c 100644 --- a/scripts/99_download.sh +++ b/scripts/99_download.sh @@ -5,12 +5,14 @@ echo "<< 99_download.sh >>" user=poq -base_dots_url=https://git.mz.fo/fro/lnx-arch/raw/branch/master -targz_dots_url=https://git.mz.fo/fro/lnx-arch/archive/master.tar.gz - clone_trg=/tmp + +targz_dots_url=https://git.mz.fo/fro/lnx-arch/archive/master.tar.gz dots_trg=${clone_trg}/lnx-arch/dots +targz_wp_url=https://gitlab.com/pqq/wallpaper/-/archive/main/wallpaper-main.tar.gz +wp_trg=${clone_trg}/lnx-arch/dots + if [ "$EUID" -ne 0 ] then echo "error: run as 'root'" @@ -63,6 +65,13 @@ if [ ${operation} == "dots" ] ; then chown ${user}:${user} ${target_file_path} ls -al ${target_file_path} +fi +# download wallpapers from repo +if [ ${operation} == "wp" ] ; then + echo "***** ${operation} *****" + download_repo ${targz_wp_url} + tree ${clone_trg}/wallpapers + fi diff --git a/scripts/curae.sh b/scripts/curae.sh index 1ce443f..c0d4cbd 100644 --- a/scripts/curae.sh +++ b/scripts/curae.sh @@ -31,7 +31,7 @@ fi this_file_name=`basename "$0"` if [ $# -lt 1 ]; then - echo "usage: '$this_file_name { dots | uf / upd-full [host] | sw / software [host] | us / upd-self }'" + echo "usage: '$this_file_name { dots | uf / upd-full [host] | sw / software [host] | us / upd-self | wp }'" exit 1 fi @@ -41,7 +41,7 @@ parameter_2=$3 shopt -s extglob case $operation in - !(dots|uf|upd-full|sw|software|us|upd-self)) + !(dots|uf|upd-full|sw|software|us|upd-self|wp)) echo "error: unknown operation '$operation'" exit ;; @@ -147,6 +147,16 @@ if [ $operation == "uf" ] || [ $operation == "upd-full" ] ; then fi shopt -u extglob +# update wallpapers +shopt -s extglob +if [ $operation == "wp" ] ; then + + execute_script 99_download.sh wp + +fi +shopt -u extglob + + # update and rebuild (all) without hostname #shopt -s extglob #if [ $operation == "ur" ] || [ $operation == "upd-rebuild" ] ; then