Skip to content

Commit

Permalink
set umask 022 to avoid issues with weird user configurations
Browse files Browse the repository at this point in the history
fixes: #20
  • Loading branch information
wiedehopf committed Apr 8, 2024
1 parent ca97e37 commit 42bb495
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions acarsdec/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
umask 022
set -e
SCRIPT_PATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd)/$(basename "$0")"
trap 'echo "[ERROR] Error in line $LINENO when executing: $BASH_COMMAND"' ERR
Expand Down
1 change: 1 addition & 0 deletions autogain-install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
umask 022
cd /tmp

# remove old version:
Expand Down
1 change: 1 addition & 0 deletions autogain-remove.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
umask 022

rm -f /usr/local/bin/autogain1090
rm -f /etc/default/autogain1090
Expand Down
1 change: 1 addition & 0 deletions biastee-disable-978.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
umask 022
set -e
ipath=/usr/local/share/adsb-wiki/biastee
APPS="dump978-fa"
Expand Down
1 change: 1 addition & 0 deletions biastee-disable.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
umask 022
set -e
ipath=/usr/local/share/adsb-wiki/biastee
APPS="dump1090-fa readsb"
Expand Down
1 change: 1 addition & 0 deletions biastee-enable-978.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
umask 022
renice 10 $$
set -e
if ! command -v git &>/dev/null || ! command -v cmake &>/dev/null; then
Expand Down
1 change: 1 addition & 0 deletions biastee-enable.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
umask 022
renice 10 $$
set -e
function aptInstall() {
Expand Down
1 change: 1 addition & 0 deletions dumpvdl2/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
umask 022
set -e
SCRIPT_PATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd)/$(basename "$0")"
trap 'echo "[ERROR] Error in line $LINENO when executing: $BASH_COMMAND"' ERR
Expand Down
1 change: 1 addition & 0 deletions fr24-nopackage.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
umask 022

apt update
apt install -y perl wget
Expand Down
1 change: 1 addition & 0 deletions install-complete.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
umask 022
renice 10 $$
clear
echo "--------------"
Expand Down
1 change: 1 addition & 0 deletions install-dump1090-fa.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
umask 022

set -e
trap 'echo "[ERROR] Error in line $LINENO when executing: $BASH_COMMAND"' ERR
Expand Down
1 change: 1 addition & 0 deletions libacars/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
umask 022
set -e
SCRIPT_PATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd)/$(basename "$0")"
trap 'echo "[ERROR] Error in line $LINENO when executing: $BASH_COMMAND"' ERR
Expand Down
1 change: 1 addition & 0 deletions osm_tiles_offline.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
umask 022

set -e
trap 'echo "[ERROR] Error in line $LINENO when executing: $BASH_COMMAND"' ERR
Expand Down
1 change: 1 addition & 0 deletions osm_tiles_offline_10.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
umask 022

set -e
trap 'echo "[ERROR] Error in line $LINENO when executing: $BASH_COMMAND"' ERR
Expand Down
1 change: 1 addition & 0 deletions pingfail-install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
umask 022

repo="https://github.com/wiedehopf/adsb-scripts"
ipath=/usr/local/share/adsb-scripts
Expand Down
1 change: 1 addition & 0 deletions pingfail.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
umask 022

trap "exit" INT TERM
trap "kill 0" EXIT
Expand Down
1 change: 1 addition & 0 deletions readsb-install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
umask 022

if [ "$(id -u)" != "0" ]; then
echo -e "\033[33m"
Expand Down
1 change: 1 addition & 0 deletions vdlm2dec/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
umask 022
set -e
SCRIPT_PATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd)/$(basename "$0")"
trap 'echo "[ERROR] Error in line $LINENO when executing: $BASH_COMMAND"' ERR
Expand Down

0 comments on commit 42bb495

Please sign in to comment.