Skip to content

Commit 4ee43f0

Browse files
committed
trying not to remove landsat directory
1 parent 0fa4056 commit 4ee43f0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
processed
2+
landsat
23
zipped
34
queue
45
*.csv

docker-start.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ if [ ! $STARTED ] && [ ! $STOPPED ]; then
2121
docker run \
2222
--name twlandsat \
2323
-e "RSYNC_PASSWORD=1A5%QfFx%S8%" \
24-
-v /home/landsat:/root/landsat \
25-
-v $PWD:/home/twlandsat \
24+
-v $PWD/landsat:/root/landsat \
2625
-i -t jimyhuang/twlandsat \
2726
/bin/bash
2827
exit

docker-uninstall.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#! /bin/bash
22
# remove twlandsat image
33
while true; do
4-
read -p "Uninstall twlandsat, remove docker and remove /home/landsat directory. y/n?" yn
4+
read -p "Uninstall twlandsat, remove docker and remove current_dir/landsat directory. y/n?" yn
55
case $yn in
6-
[Yy]* ) docker stop twlandsat && docker rm twlandsat && rm -Rf /home/landsat/; break;;
6+
[Yy]* ) docker stop twlandsat && docker rm twlandsat; break;;
77
[Nn]* ) exit;;
88
* ) echo "Please answer yes or no.";;
99
esac

0 commit comments

Comments
 (0)