Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
orlikoski committed Mar 27, 2019
1 parent 67ec0bf commit 69d07b2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
12 changes: 8 additions & 4 deletions Packer/script/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
echo "==> Disabling the release upgrader"
sed -i.bak 's/^Prompt=.*$/Prompt=never/' /etc/update-manager/release-upgrades

# Sync Date
sudo timedatectl set-ntp off
sudo timedatectl set-ntp on

echo "==> Checking version of Ubuntu"
. /etc/lsb-release

if [[ $DISTRIB_RELEASE == 16.04 || $DISTRIB_RELEASE == 16.10 ]]; then
echo "==> Disabling periodic apt upgrades"
echo 'APT::Periodic::Enable "0";' >> /etc/apt/apt.conf.d/10periodic
fi

echo "==> Disabling periodic apt upgrades"
echo 'APT::Periodic::Enable "0";' >> /etc/apt/apt.conf.d/10periodic



echo "==> Updating list of repositories"
Expand Down
6 changes: 4 additions & 2 deletions Packer/skadi_build/build_skadi.ps1
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
packer build -force .\create_basebox.json
packer build -force .\create_boxes.json
packer build -force create_basebox.json
packer build -force create_boxes.json
vagrant.exe box add box/virtualbox/skadi_server-2019.2.box --name skadivm/skadi_server
vagrant.exe box add box/vmware/skadi_server-2019.2.box --name skadivm/skadi_server
2 changes: 1 addition & 1 deletion Packer/skadi_build/create_boxes.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
],
"execute_command": "echo '{{ user `ssh_password` }}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"../script/vagrant.sh",
"../script/sshd.sh",
"../script/motd.sh",
"{{user `custom_script` }}",
"../script/vagrant.sh",
"../script/cleanup.sh"
],
"type": "shell",
Expand Down
1 change: 1 addition & 0 deletions scripts/signedbuildskadi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ sudo apt-get install -y \
htop \
screen \
gnupg \
net-tools \
software-properties-common \
apache2-utils

Expand Down

0 comments on commit 69d07b2

Please sign in to comment.