-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
238 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 57 additions & 4 deletions
61
resources/views/scripts/ark/ark/manual/pre-install/await-apt-unlock.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,60 @@ | ||
# Wait For Apt To Unlock | ||
|
||
while fuser /var/lib/dpkg/lock >/dev/null 2>&1 ; do | ||
echo "Waiting for other software managers to finish..." | ||
apt_wait () { | ||
while sudo fuser /var/lib/dpkg/lock >/dev/null 2>&1 ; do | ||
echo "Waiting for dpkg/lock to be unlocked for sudo..." | ||
|
||
sleep 1 | ||
done | ||
sleep 5 | ||
done | ||
|
||
while sudo fuser /var/lib/dpkg/lock-frontend >/dev/null 2>&1 ; do | ||
echo "Waiting: dpk for lock-frontend to be unlocked for sudo..." | ||
|
||
sleep 5 | ||
done | ||
|
||
while sudo fuser /var/lib/apt/lists/lock >/dev/null 2>&1 ; do | ||
echo "Waiting for lists/lock to be unlocked for sudo..." | ||
|
||
sleep 5 | ||
done | ||
|
||
if [ -f /var/log/unattended-upgrades/unattended-upgrades.log ]; then | ||
while sudo fuser /var/log/unattended-upgrades/unattended-upgrades.log >/dev/null 2>&1 ; do | ||
echo "Waiting for unattended-upgrades to be unlocked for sudo..." | ||
|
||
sleep 5 | ||
done | ||
fi | ||
|
||
while fuser /var/lib/dpkg/lock >/dev/null 2>&1 ; do | ||
echo "Waiting for dpkg/lock to be unlocked for user..." | ||
sleep 5 | ||
done | ||
|
||
while fuser /var/lib/dpkg/lock-frontend >/dev/null 2>&1 ; do | ||
echo "Waiting for dpkg/lock-frontend to be unlocked for user..." | ||
sleep 5 | ||
done | ||
|
||
while fuser /var/lib/apt/lists/lock >/dev/null 2>&1 ; do | ||
echo "Waiting for lists/lock to be unlocked for user..." | ||
sleep 5 | ||
done | ||
|
||
if [ -f /var/log/unattended-upgrades/unattended-upgrades.log ]; then | ||
while fuser /var/log/unattended-upgrades/unattended-upgrades.log >/dev/null 2>&1 ; do | ||
echo "Waiting for unattended-upgrades to be unlocked for user..." | ||
sleep 5 | ||
done | ||
fi | ||
} | ||
|
||
heading "Waiting for locks..." | ||
apt_wait | ||
|
||
sudo sed -i "s/#precedence ::ffff:0:0\/96 100/precedence ::ffff:0:0\/96 100/" /etc/gai.conf | ||
if [ -f /etc/needrestart/needrestart.conf ]; then | ||
# Ubuntu 22 has this set to (i)nteractive, but we want (a)utomatic. | ||
sudo sed -i "s/^#\$nrconf{restart} = 'i';/\$nrconf{restart} = 'a';/" /etc/needrestart/needrestart.conf | ||
fi |
1 change: 1 addition & 0 deletions
1
resources/views/scripts/ark/ark/manual/pre-install/deps-jemalloc.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
heading "Installing jemalloc..." | ||
|
||
apt_wait | ||
sudo apt-get install -y libjemalloc-dev | ||
|
||
success "Installed jemalloc!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
resources/views/scripts/ark/ark/manual/pre-install/deps-pgsql.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
heading "Installing PostgreSQL..." | ||
|
||
apt_wait | ||
sudo apt-get update | ||
|
||
apt_wait | ||
sudo apt-get install postgresql postgresql-contrib -y | ||
|
||
success "Installed PostgreSQL!" |
1 change: 1 addition & 0 deletions
1
resources/views/scripts/ark/ark/manual/pre-install/deps-program.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 6 additions & 3 deletions
9
resources/views/scripts/ark/ark/manual/pre-install/deps-yarn.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
heading "Installing Yarn..." | ||
|
||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | ||
(echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list) | ||
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null | ||
(echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list) | ||
|
||
apt_wait | ||
sudo apt-get update | ||
sudo apt-get install -y yarn | ||
|
||
apt_wait | ||
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get install yarn -yq | ||
|
||
success "Installed Yarn!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
resources/views/scripts/ark/ark/manual/pre-install/update-system.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
heading "Installing system updates..." | ||
|
||
apt_wait | ||
sudo apt-get update | ||
|
||
apt_wait | ||
sudo DEBIAN_FRONTEND=noninteractive apt-get upgrade -yqq | ||
|
||
apt_wait | ||
sudo apt-get dist-upgrade -yqq | ||
|
||
apt_wait | ||
sudo apt-get autoremove -yyq | ||
|
||
apt_wait | ||
sudo apt-get autoclean -yq | ||
|
||
success "Installed system updates!" |
61 changes: 57 additions & 4 deletions
61
resources/views/scripts/ark/ark/provision/pre-install/await-apt-unlock.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,60 @@ | ||
# Wait For Apt To Unlock | ||
|
||
while fuser /var/lib/dpkg/lock >/dev/null 2>&1 ; do | ||
echo "Waiting for other software managers to finish..." | ||
apt_wait () { | ||
while sudo fuser /var/lib/dpkg/lock >/dev/null 2>&1 ; do | ||
echo "Waiting for dpkg/lock to be unlocked for sudo..." | ||
|
||
sleep 1 | ||
done | ||
sleep 5 | ||
done | ||
|
||
while sudo fuser /var/lib/dpkg/lock-frontend >/dev/null 2>&1 ; do | ||
echo "Waiting: dpk for lock-frontend to be unlocked for sudo..." | ||
|
||
sleep 5 | ||
done | ||
|
||
while sudo fuser /var/lib/apt/lists/lock >/dev/null 2>&1 ; do | ||
echo "Waiting for lists/lock to be unlocked for sudo..." | ||
|
||
sleep 5 | ||
done | ||
|
||
if [ -f /var/log/unattended-upgrades/unattended-upgrades.log ]; then | ||
while sudo fuser /var/log/unattended-upgrades/unattended-upgrades.log >/dev/null 2>&1 ; do | ||
echo "Waiting for unattended-upgrades to be unlocked for sudo..." | ||
|
||
sleep 5 | ||
done | ||
fi | ||
|
||
while fuser /var/lib/dpkg/lock >/dev/null 2>&1 ; do | ||
echo "Waiting for dpkg/lock to be unlocked for user..." | ||
sleep 5 | ||
done | ||
|
||
while fuser /var/lib/dpkg/lock-frontend >/dev/null 2>&1 ; do | ||
echo "Waiting for dpkg/lock-frontend to be unlocked for user..." | ||
sleep 5 | ||
done | ||
|
||
while fuser /var/lib/apt/lists/lock >/dev/null 2>&1 ; do | ||
echo "Waiting for lists/lock to be unlocked for user..." | ||
sleep 5 | ||
done | ||
|
||
if [ -f /var/log/unattended-upgrades/unattended-upgrades.log ]; then | ||
while fuser /var/log/unattended-upgrades/unattended-upgrades.log >/dev/null 2>&1 ; do | ||
echo "Waiting for unattended-upgrades to be unlocked for user..." | ||
sleep 5 | ||
done | ||
fi | ||
} | ||
|
||
heading "Waiting for locks..." | ||
apt_wait | ||
|
||
sudo sed -i "s/#precedence ::ffff:0:0\/96 100/precedence ::ffff:0:0\/96 100/" /etc/gai.conf | ||
if [ -f /etc/needrestart/needrestart.conf ]; then | ||
# Ubuntu 22 has this set to (i)nteractive, but we want (a)utomatic. | ||
sudo sed -i "s/^#\$nrconf{restart} = 'i';/\$nrconf{restart} = 'a';/" /etc/needrestart/needrestart.conf | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
heading "Installing jemalloc..." | ||
|
||
apt_wait | ||
sudo apt-get install -y libjemalloc-dev | ||
|
||
success "Installed jemalloc!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
resources/views/scripts/ark/ark/provision/pre-install/unattended-security-upgrades.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.