fix travis (#219)

* fix travis

* Update .travis.yml

* Update run.sh

* Update .travis.yml

* Update .travis.yml
This commit is contained in:
Pascal Vizeli
2018-01-02 16:36:17 +01:00
committed by GitHub
parent 116f5b3436
commit 1d68342fe3
2 changed files with 9 additions and 8 deletions

View File

@@ -1,19 +1,19 @@
language: bash language: bash
# Use container-based infrastructure for quicker build start-up sudo: required
sudo: false service: docker
addons: addons:
apt: apt:
sources:
- debian-sid # Grab shellcheck from the Debian repo (o_O)
packages: packages:
- shellcheck - docker-ce
- jq
before_install:
- shopt -s globstar
- docker pull koalaman/shellcheck
script: script:
- bash -c 'shopt -s globstar; shellcheck **/*.sh' - docker run -v $(pwd):/mnt koalaman/shellcheck **/*.sh
- bash -c 'shopt -s globstar ; jq . **/*.json'
matrix: matrix:
fast_finish: true fast_finish: true

View File

@@ -69,6 +69,7 @@ else
addgroup -g 1000 "$USERNAME" addgroup -g 1000 "$USERNAME"
adduser -D -H -G "$USERNAME" -s /bin/false -u 1000 "$USERNAME" adduser -D -H -G "$USERNAME" -s /bin/false -u 1000 "$USERNAME"
# shellcheck disable=SC1117
echo -e "$PASSWORD\n$PASSWORD" | smbpasswd -a -s -c /etc/smb.conf "$USERNAME" echo -e "$PASSWORD\n$PASSWORD" | smbpasswd -a -s -c /etc/smb.conf "$USERNAME"
fi fi