mirror of
https://github.com/YunoHost-Apps/gogs_ynh.git
synced 2024-09-03 20:36:23 +02:00
Make scripts safer
This commit is contained in:
parent
08f3ada54e
commit
8016306557
5 changed files with 5 additions and 5 deletions
|
@ -43,5 +43,5 @@ extract_gogs() {
|
||||||
unzip -q "$gogs_tarball" -d "$TMPDIR" \
|
unzip -q "$gogs_tarball" -d "$TMPDIR" \
|
||||||
|| ynh_die "Unable to extract Gogs tarball"
|
|| ynh_die "Unable to extract Gogs tarball"
|
||||||
sudo rsync -a "$TMPDIR"/gogs/* "$DESTDIR"
|
sudo rsync -a "$TMPDIR"/gogs/* "$DESTDIR"
|
||||||
rm -rf "$gogs_tarball" "$TMPDIR"
|
rm -rf "$gogs_tarball" "${TMPDIR:-/tmp/fakefile}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -eu
|
set -euo pipefail
|
||||||
|
|
||||||
# Set app specific variables
|
# Set app specific variables
|
||||||
app=${APPNAME:-gogs}
|
app=${APPNAME:-gogs}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -eu
|
set -euo pipefail
|
||||||
|
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
domain=$1
|
domain=$1
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -eu
|
set -euo pipefail
|
||||||
|
|
||||||
# Set app specific variables
|
# Set app specific variables
|
||||||
app=${APPNAME:-gogs}
|
app=${APPNAME:-gogs}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -eu
|
set -euo pipefail
|
||||||
|
|
||||||
# Load common variables and helpers
|
# Load common variables and helpers
|
||||||
source ./_common.sh
|
source ./_common.sh
|
||||||
|
|
Loading…
Reference in a new issue