Compare commits

...

3 Commits

Author SHA1 Message Date
53a3e0e1d8 Updated apps category 2026-01-30 13:39:16 +01:00
4b9432c5e7 Update signal name 2026-01-30 13:37:35 +01:00
eb459d1a1a Add repository for Session Desktop 2026-01-30 13:35:06 +01:00
24 changed files with 61 additions and 4 deletions

View File

@@ -0,0 +1,57 @@
#!/bin/bash
#### Variables
APT_UPDATE="apt -y update"
APT_INST="apt -y install"
APT_PURGE="apt -y purge"
APT_REMOVE="apt -y autoremove"
PKG="session-desktop"
#### Functions
check_root() {
if [ "$EUID" -ne 0 ]; then
echo "Must be root to run $0"
exit
fi
}
choice() {
echo -ne "[y/n]"
while true; do
read -rN1 input
case $input in
[yY][eE][sS] | [yY])
return 0
break
;;
[nN][oO] | [nN])
return 1
;;
esac
done
}
#### Main
check_root
echo -e "\nUpdate apt"
echo "$APT_UPDATE"
$APT_UPDATE
echo -ne "\nYou want to install Session desktop ($PKG)? "
if choice 2>/dev/null; then
echo -ne "\nAdd repository for Session desktop\n"
$APT_INST apt-transport-https wget
sudo install -d -m 0755 /etc/apt/keyrings
wget -q https://deb.oxen.io/pub.gpg -O- | tee /etc/apt/keyrings/session-desktop.asc > /dev/null
echo "deb [signed-by=/etc/apt/keyrings/session-desktop.asc] https://deb.oxen.io $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/session-desktop.list > /dev/null
$APT_UPDATE
echo -ne "\n$APT_INST $PKG\n"
$APT_INST $PKG
fi
echo -ne "\n\n"

View File

@@ -41,14 +41,14 @@ echo -e "\nUpdate apt"
echo "$APT_UPDATE"
$APT_UPDATE
echo -ne "\nYou want to install Signal ($PKG)? "
echo -ne "\nYou want to install Signal desktop ($PKG)? "
if choice 2>/dev/null; then
echo -ne "\nAdd repository for Signal\n"
echo -ne "\nAdd repository for Signal desktop\n"
$APT_INST apt-transport-https wget
sudo install -d -m 0755 /etc/apt/keyrings
wget -q https://updates.signal.org/desktop/apt/keys.asc -O- | tee /etc/apt/keyrings/signal.asc > /dev/null
echo "deb [signed-by=/etc/apt/keyrings/signal.asc] https://updates.signal.org/desktop/apt xenial main" | sudo tee /etc/apt/sources.list.d/signal.list > /dev/null
wget -q https://updates.signal.org/desktop/apt/keys.asc -O- | tee /etc/apt/keyrings/signal-desktop.asc > /dev/null
echo "deb [signed-by=/etc/apt/keyrings/signal-dekstop.asc] https://updates.signal.org/desktop/apt xenial main" | sudo tee /etc/apt/sources.list.d/signal-desktop.list > /dev/null
$APT_UPDATE
echo -ne "\n$APT_INST $PKG\n"
$APT_INST $PKG

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

Before

Width:  |  Height:  |  Size: 852 B

After

Width:  |  Height:  |  Size: 852 B

View File

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

View File

Before

Width:  |  Height:  |  Size: 341 B

After

Width:  |  Height:  |  Size: 341 B

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB