Improve first-time installation security-wise.

Creating an empty repository will force the updater to do verification
of all commits from the beginning first.
master
Icedream 2018-02-19 11:18:52 +01:00
parent 9b6a160fce
commit 8a0b26fe1d
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 3 additions and 1 deletions

View File

@ -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