99_download.sh > 99_deploy.sh
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# klevstul
|
# klevstul
|
||||||
|
|
||||||
echo "<< 99_download.sh >>"
|
echo "<< 99_deploy.sh >>"
|
||||||
|
|
||||||
user=poq
|
user=poq
|
||||||
clone_trg=/tmp
|
clone_trg=/tmp
|
||||||
@@ -31,7 +31,7 @@ fi
|
|||||||
|
|
||||||
this_file_name=`basename "$0"`
|
this_file_name=`basename "$0"`
|
||||||
if [ $# -lt 1 ]; then
|
if [ $# -lt 1 ]; then
|
||||||
echo "usage: '$this_file_name { dots | uf / upd-full [host] | sw / software [host] | us / upd-self | wp }'"
|
echo "usage: '$this_file_name { dots | uf / upd-full [host] | sw / software {setup/install} [host] | us / upd-self | wp }'"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -59,54 +59,19 @@ execute_script() {
|
|||||||
/tmp/${file} ${parameter_1} ${parameter_2}
|
/tmp/${file} ${parameter_1} ${parameter_2}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
# ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
||||||
|
|
||||||
# build package
|
|
||||||
#shopt -s extglob
|
|
||||||
#if [ $operation == "pkg-build" ] ; then
|
|
||||||
#
|
|
||||||
# if [ -z "${extra_parameter}" ]; then
|
|
||||||
# echo "error: missing package name"
|
|
||||||
# exit 1
|
|
||||||
# fi
|
|
||||||
#
|
|
||||||
# package_dir=${pkgs_dir}/${extra_parameter}
|
|
||||||
#
|
|
||||||
# if ! [ -d "${package_dir}" ] ; then
|
|
||||||
# echo "invalid path: '${package_dir}'"
|
|
||||||
# exit 1
|
|
||||||
# fi
|
|
||||||
#
|
|
||||||
# echo "building package with path: '${package_dir}'"
|
|
||||||
# cd ${package_dir}
|
|
||||||
# nix-build -A ${extra_parameter}
|
|
||||||
# cd -
|
|
||||||
#
|
|
||||||
#fi
|
|
||||||
#shopt -u extglob
|
|
||||||
|
|
||||||
# update cfg/dot files
|
|
||||||
#shopt -s extglob
|
|
||||||
#if [ $operation == "u" ] || [ $operation == "upd-dots" ] ; then
|
|
||||||
#
|
|
||||||
# execute_script 10_download_files.sh "dots-all"
|
|
||||||
#
|
|
||||||
# tree -D /etc/nixos
|
|
||||||
#
|
|
||||||
#fi
|
|
||||||
#shopt -u extglob
|
|
||||||
|
|
||||||
# update dot files
|
# update dot files
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
if [ $operation == "dots" ] ; then
|
if [ $operation == "dots" ] ; then
|
||||||
|
|
||||||
execute_script 99_download.sh dots
|
execute_script 99_deploy.sh dots
|
||||||
|
|
||||||
fi
|
fi
|
||||||
shopt -u extglob
|
shopt -u extglob
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# install software (update system)
|
# install software (update system)
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
if [ $operation == "sw" ] || [ $operation == "software" ] ; then
|
if [ $operation == "sw" ] || [ $operation == "software" ] ; then
|
||||||
@@ -151,41 +116,7 @@ shopt -u extglob
|
|||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
if [ $operation == "wp" ] ; then
|
if [ $operation == "wp" ] ; then
|
||||||
|
|
||||||
execute_script 99_download.sh wp
|
execute_script 99_deploy.sh wp
|
||||||
|
|
||||||
fi
|
fi
|
||||||
shopt -u extglob
|
shopt -u extglob
|
||||||
|
|
||||||
|
|
||||||
# update and rebuild (all) without hostname
|
|
||||||
#shopt -s extglob
|
|
||||||
#if [ $operation == "ur" ] || [ $operation == "upd-rebuild" ] ; then
|
|
||||||
#
|
|
||||||
# ${home_dir}/${this_file} upd-dots
|
|
||||||
# ${home_dir}/${this_file} rebuild ${extra_parameter}
|
|
||||||
#
|
|
||||||
#fi
|
|
||||||
#shopt -u extglob
|
|
||||||
|
|
||||||
# rebuild system with hostname
|
|
||||||
#shopt -s extglob
|
|
||||||
#if [ $operation == "rh" ] || [ $operation == "rebuildh" ] ; then
|
|
||||||
#
|
|
||||||
# if [ -z "${extra_parameter}" ]; then
|
|
||||||
# echo "error: missing host name"
|
|
||||||
# exit 1
|
|
||||||
# fi
|
|
||||||
#
|
|
||||||
# nixos-rebuild switch -v --show-trace --flake /etc/nixos#${extra_parameter}
|
|
||||||
#
|
|
||||||
#fi
|
|
||||||
#shopt -u extglob
|
|
||||||
|
|
||||||
# rebuild system without hostname
|
|
||||||
#shopt -s extglob
|
|
||||||
#if [ $operation == "r" ] || [ $operation == "rebuild" ] ; then
|
|
||||||
#
|
|
||||||
# nixos-rebuild switch -v --show-trace
|
|
||||||
#
|
|
||||||
#fi
|
|
||||||
#shopt -u extglob
|
|
||||||
|
|||||||
Reference in New Issue
Block a user