+ services
This commit is contained in:
1
dots/archinstall/t470p/services.txt
Normal file
1
dots/archinstall/t470p/services.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
lemurs.service
|
||||||
@@ -64,7 +64,7 @@ if [ ${operation} == "update" ] ; then
|
|||||||
echo ""
|
echo ""
|
||||||
echo "attempted to to download 'packages.txt' from:
|
echo "attempted to to download 'packages.txt' from:
|
||||||
echo '${package_list_url}'"
|
echo '${package_list_url}'"
|
||||||
echo "'${parameter}' might be an invalid hostname, or 'packages.txt' might be created for given host."
|
echo "'${parameter}' might be an invalid hostname, or 'packages.txt' might be missing for given host."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -117,6 +117,40 @@ if [ ${operation} == "update" ] ; then
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# -----
|
||||||
|
# enable services
|
||||||
|
# -----
|
||||||
|
if [ ${operation} == "services" ] ; then
|
||||||
|
|
||||||
|
param_check "${parameter}" "no host name given"
|
||||||
|
|
||||||
|
service_list_url=https://git.mz.fo/fro/lnx-arch/raw/branch/master/dots/archinstall/${parameter}/services.txt
|
||||||
|
|
||||||
|
trg_file=/tmp/services.txt
|
||||||
|
|
||||||
|
rm -rf ${trg_file}
|
||||||
|
|
||||||
|
wget -q ${service_list_url} -O ${trg_file}
|
||||||
|
|
||||||
|
if ! [ -s ${trg_file} ] ; then
|
||||||
|
echo "error: services.txt is empty"
|
||||||
|
echo ""
|
||||||
|
echo "attempted to to download 'services.txt' from:
|
||||||
|
echo '${service_list_url}'"
|
||||||
|
echo "'${parameter}' might be an invalid hostname, or 'services.txt' might be missing for given host."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
mapfile -t services < ${trg_file}
|
||||||
|
|
||||||
|
list=()
|
||||||
|
for x in ${services[@]}
|
||||||
|
do
|
||||||
|
echo "systemctl enable ${x}"
|
||||||
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
# -----
|
# -----
|
||||||
# install package
|
# install package
|
||||||
# -----
|
# -----
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ parameter_2=$3
|
|||||||
|
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
case $operation in
|
case $operation in
|
||||||
!(dots|dots+|uf|upd-full|sw|software|us|upd-self|yay))
|
!(dots|dots+|uf|upd-full|services|sw|software|us|upd-self|yay))
|
||||||
echo "error: unknown operation '$operation'"
|
echo "error: unknown operation '$operation'"
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
@@ -81,6 +81,25 @@ if [ $operation == "dots+" ] ; then
|
|||||||
fi
|
fi
|
||||||
shopt -u extglob
|
shopt -u extglob
|
||||||
|
|
||||||
|
# enable services
|
||||||
|
shopt -s extglob
|
||||||
|
if [ $operation == "services" ] ; then
|
||||||
|
|
||||||
|
if [ -z "${parameter_1}" ]; then
|
||||||
|
parameter_1=services
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $parameter_1 == "services" ] ; then
|
||||||
|
if [ -z "${parameter_2}" ]; then
|
||||||
|
parameter_2=$HOSTNAME
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
execute_script 99_software.sh "${parameter_1}" "${parameter_2}"
|
||||||
|
|
||||||
|
fi
|
||||||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user