From 8a0b26fe1dd6d257ce8c098c0118ac86b121daab Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Mon, 19 Feb 2018 11:18:52 +0100 Subject: [PATCH] Improve first-time installation security-wise. Creating an empty repository will force the updater to do verification of all commits from the beginning first. --- home/bin/update-profile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/bin/update-profile b/home/bin/update-profile index 2838332..c5f8e8f 100755 --- a/home/bin/update-profile +++ b/home/bin/update-profile @@ -8,7 +8,8 @@ file_changed() { if [ ! -d ~/.local/profile-git ]; then mkdir -p ~/.local/profile-git - git clone --recursive https://git.icedream.tech/icedream/profile.git ~/.local/profile-git + git init + git remote add origin https://git.icedream.tech/icedream/profile.git ~/.local/profile-git fi ( @@ -59,6 +60,7 @@ fi echo "All commits passed, now applying updates..." git rebase origin + git submodule update --init echo "Running package installation..." cd packages