1
0
Fork 0
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:
mbugeia 2017-02-19 22:24:20 +01:00
parent 08f3ada54e
commit 8016306557
5 changed files with 5 additions and 5 deletions

View file

@ -43,5 +43,5 @@ extract_gogs() {
unzip -q "$gogs_tarball" -d "$TMPDIR" \
|| ynh_die "Unable to extract Gogs tarball"
sudo rsync -a "$TMPDIR"/gogs/* "$DESTDIR"
rm -rf "$gogs_tarball" "$TMPDIR"
rm -rf "$gogs_tarball" "${TMPDIR:-/tmp/fakefile}"
}

View file

@ -1,6 +1,6 @@
#!/bin/bash
set -eu
set -euo pipefail
# Set app specific variables
app=${APPNAME:-gogs}

View file

@ -1,6 +1,6 @@
#!/bin/bash
set -eu
set -euo pipefail
# Retrieve arguments
domain=$1

View file

@ -1,6 +1,6 @@
#!/bin/bash
set -eu
set -euo pipefail
# Set app specific variables
app=${APPNAME:-gogs}

View file

@ -1,6 +1,6 @@
#!/bin/bash
set -eu
set -euo pipefail
# Load common variables and helpers
source ./_common.sh