Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 35c6558

Browse files
committed
Using sudo...
1 parent 42ad817 commit 35c6558

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.travis/start_db.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
# Create the dir to host oracledata and check if it is present on cache.
55
mkdir -p $HOME/$ORACLE_VERSION && chmod -R 777 $HOME/$ORACLE_VERSION
66
if [ -f $HOME/$ORACLE_VERSION.tar.gz ]; then
7-
tar -zxf $HOME/$ORACLE_VERSION.tar.gz -C $HOME/$ORACLE_VERSION
7+
sudo tar -zxf $HOME/$ORACLE_VERSION.tar.gz -C $HOME/$ORACLE_VERSION
88
fi
99

1010
# Oracle 12c R1 SE
@@ -25,6 +25,5 @@ fi
2525

2626
# Save the oracledata dir to cache.
2727
if [ ! -f $HOME/$ORACLE_VERSION.tar.gz ]; then
28-
chmod -R 777 $HOME/$ORACLE_VERSION
29-
tar -zcf $CACHE_DIR/$ORACLE_VERSION.tar.gz $HOME/$ORACLE_VERSION
28+
sudo tar -zcf $CACHE_DIR/$ORACLE_VERSION.tar.gz $HOME/$ORACLE_VERSION
3029
fi

0 commit comments

Comments
 (0)