This commit is contained in:
committer@tuxwarrior
2026-02-24 10:02:41 -05:00
parent 9b03a5fdc9
commit bb46a0b6e2
9 changed files with 528 additions and 31 deletions

View File

@@ -20,6 +20,7 @@ operation=$1
targz_dots_url=https://gi.op.fo/fro/lnx-arch/archive/master.tar.gz
options_url=https://gi.op.fo/fro/lnx-arch/raw/branch/master/dots/archinstall/${HOSTNAME}/options.sh
# download options
options_trg=/tmp/options.sh
rm -rf ${options_trg}
rm -rf ${options_trg}.tmp
@@ -38,6 +39,7 @@ if [[ -z "${clone_trg}" ]] ; then
exit 1
fi
# load secrets, as environment variables
secrets_cred_path=/home/${system_user}/syncDir/secrets/toBeSourced/cred.sh
source ${secrets_cred_path}
@@ -146,31 +148,31 @@ deploy_file() {
ls -al ${_trg_path}
}
# locate firefox's profile directory
#firefox_profile_dir() {
# ffdir=/home/${system_user}/.mozilla/firefox/
#
# if ! [ -d "$ffdir" ]
# then
# echo "error: firefox main directory not found: '${ffdir}'"
# else
# pattern=".default-release"
# old_dir=`pwd`
# cd ${ffdir}
# for _dir in *"${pattern}"*; do
# [ -d "${_dir}" ] && dir="${_dir}" && break
# done
# cd ${old_dir}
#
# if [ -z "$dir" ]
# then
# echo "error: firefox profile directory not found"
# else
# ffprofiledir=${ffdir}${dir}
# echo "${ffprofiledir}"
# fi
# fi
#}
# locate librewolf's profile directory
librewolf_profile_dir() {
ffdir=/home/${system_user}/.mozilla/firefox/
if ! [ -d "$ffdir" ]
then
echo "error: firefox main directory not found: '${ffdir}'"
else
pattern=".default-release"
old_dir=`pwd`
cd ${ffdir}
for _dir in *"${pattern}"*; do
[ -d "${_dir}" ] && dir="${_dir}" && break
done
cd ${old_dir}
if [ -z "$dir" ]
then
echo "error: firefox profile directory not found"
else
ffprofiledir=${ffdir}${dir}
echo "${ffprofiledir}"
fi
fi
}
# ~ ~ ~ ~ ~ ~ ~ ~ ~ ~