Skip to content

Commit

Permalink
fix logging mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
john-shine committed Apr 6, 2020
1 parent e361467 commit 7fc7c7d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.5
1.0.6
2 changes: 1 addition & 1 deletion scripts/preuninst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fi
container_name=$(docker ps --filter "id=${container_id}" --format "{{.Names}}")

if [ -x "$(command -v docker)" ]; then
docker stop -t 0 $container_id 2>>"${SYNOPKG_PKGDEST}/package/logs/output.log"
docker stop -t 0 $container_id >>"${SYNOPKG_PKGDEST}/package/logs/output.log" 2>&1
docker rm -f $container_id >> "${SYNOPKG_PKGDEST}/package/logs/output.log" 2>&1
fi

Expand Down
4 changes: 2 additions & 2 deletions scripts/start-stop-status
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ case $1 in
chmod 777 "${SYNOPKG_PKGDEST_VOL}/BDdownload"
container_id=$(docker run -d -v "${SYNOPKG_PKGDEST_VOL}/BDdownload":"/home/baidu/baidunetdiskdownload/" -p 6900:6080 johnshine/baidunetdisk-crossover-vnc:latest 2>>"${SYNOPKG_PKGDEST}/package/logs/output.log")
else
docker start $container_id 2>>"${SYNOPKG_PKGDEST}/package/logs/output.log"
docker start $container_id >>"${SYNOPKG_PKGDEST}/package/logs/output.log" 2>&1
fi

ret=$?
Expand All @@ -45,7 +45,7 @@ case $1 in
echo 'fail to get package container id.' >> "${SYNOPKG_PKGDEST}/package/logs/output.log"
exit 1
fi
docker stop $container_id 2>>"${SYNOPKG_PKGDEST}/package/logs/output.log"
docker stop $container_id >> "${SYNOPKG_PKGDEST}/package/logs/output.log" 2>&1
exit $?
;;
log)
Expand Down

0 comments on commit 7fc7c7d

Please sign in to comment.