-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·21 lines (16 loc) · 855 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash -e
DSS_INSTALLDIR="/home/dataiku/dataiku-dss-$DSS_VERSION"
if [ ! -f "$DSS_DATADIR"/bin/env-default.sh ]; then
# Initialize new data directory
"$DSS_INSTALLDIR"/installer.sh -d "$DSS_DATADIR" -p "$DSS_PORT"
"$DSS_DATADIR"/bin/dssadmin install-R-integration -noDeps
"$DSS_DATADIR"/bin/dssadmin install-graphics-export
echo "dku.registration.channel=docker-image" >>"$DSS_DATADIR"/config/dip.properties
echo "dku.exports.chrome.sandbox=false" >>"$DSS_DATADIR"/config/dip.properties
elif [ $(bash -c 'source "$DSS_DATADIR"/bin/env-default.sh && echo "$DKUINSTALLDIR"') != "$DSS_INSTALLDIR" ]; then
# Upgrade existing data directory
"$DSS_INSTALLDIR"/installer.sh -d "$DSS_DATADIR" -u -y
"$DSS_DATADIR"/bin/dssadmin install-R-integration -noDeps
"$DSS_DATADIR"/bin/dssadmin install-graphics-export
fi
exec "$DSS_DATADIR"/bin/dss run