From 97bde5ee93832426cb877f8b5a0aefa89a73108b Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 6 May 2019 19:46:36 +0200 Subject: [PATCH] Enhance user home dir setup scripts. --- buster/setup_scripts/setup_eeepc.sh | 7 +++---- buster/setup_scripts/setup_home_eeepc.sh | 11 +++++++++++ buster/setup_scripts/setup_secrets.sh | 0 3 files changed, 14 insertions(+), 4 deletions(-) create mode 100755 buster/setup_scripts/setup_home_eeepc.sh mode change 100644 => 100755 buster/setup_scripts/setup_secrets.sh diff --git a/buster/setup_scripts/setup_eeepc.sh b/buster/setup_scripts/setup_eeepc.sh index f9ca1a3..3ab9386 100755 --- a/buster/setup_scripts/setup_eeepc.sh +++ b/buster/setup_scripts/setup_eeepc.sh @@ -48,9 +48,8 @@ cd "${setup_scripts_dir}" adduser --disabled-password --gecos "" plom usermod -a -G sudo plom if [ ! -d "/home/plom" ]; then - su -c "cd && git clone https://plomlompom.com/repos/clone/config" plom - su -c "~/config/buster/setup_scripts/copy_dirtree.sh ~/config/buster/home_files ~ minimal user_eeepc" plom - su -c "curl -fsSl https://raw.githubusercontent.com/tridactyl/tridactyl/78e662efefd1f4af2bdb2a53edecf03b535b997b/native/install.sh | bash" plom - echo "As tridactyl user, don't forget to do :source on the first Firefox run and then re-start." + cp setup_home_eeepc.sh /home/plom + chown plom:plom /home/plom/setup_home_eeepc.sh + su -c "cd && ./setup_home_eeepc.sh" fi passwd plom diff --git a/buster/setup_scripts/setup_home_eeepc.sh b/buster/setup_scripts/setup_home_eeepc.sh new file mode 100755 index 0000000..03bc853 --- /dev/null +++ b/buster/setup_scripts/setup_home_eeepc.sh @@ -0,0 +1,11 @@ +#!/bin/sh +set -e + +cd +public_repos_dir=~/public_repos +mkdir -p "${public_repos_dir}" +if [ ! -d "/home/plom/${public_repos_dir}/config" ]; then + cd "${public_repos_dir}" + git clone https://plomlompom.com/repos/clone/config +curl -fsSl https://raw.githubusercontent.com/tridactyl/tridactyl/78e662efefd1f4af2bdb2a53edecf03b535b997b/native/install.sh | bash +echo "As tridactyl user, don't forget to do :source on the first Firefox run and then re-start." diff --git a/buster/setup_scripts/setup_secrets.sh b/buster/setup_scripts/setup_secrets.sh old mode 100644 new mode 100755 -- 2.30.2