File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44# Create the dir to host oracledata and check if it is present on cache.
55mkdir -p $HOME /$ORACLE_VERSION && chmod -R 777 $HOME /$ORACLE_VERSION
6- if [ -f $HOME /$ORACLE_VERSION .tar.gz ]; then
6+ if [ -f $CACHE_DIR /$ORACLE_VERSION .tar.gz ]; then
77 echo " Restoring database from cache..."
8- sudo tar -zxf $HOME /$ORACLE_VERSION .tar.gz -C $HOME /$ORACLE_VERSION
8+ sudo tar -zxf $CACHE_DIR /$ORACLE_VERSION .tar.gz -C $HOME /$ORACLE_VERSION
99fi
1010
1111# Oracle 12c R1 SE
@@ -25,7 +25,7 @@ if [ $ORACLE_VERSION = $ORACLE_11gR2XE ]; then
2525fi
2626
2727# Save the oracledata dir to cache.
28- if [ ! -f $HOME /$ORACLE_VERSION .tar.gz ]; then
28+ if [ ! -f $CACHE_DIR /$ORACLE_VERSION .tar.gz ]; then
2929 echo " Saving database to cache..."
3030 docker pause $ORACLE_VERSION
3131 sudo tar -zcf $CACHE_DIR /$ORACLE_VERSION .tar.gz $HOME /$ORACLE_VERSION
You can’t perform that action at this time.
0 commit comments