Update install.sh
This commit is contained in:
parent
55c82950b6
commit
347e853a8d
@ -5,7 +5,7 @@ CONTAINER_NAME="sycgram"
|
|||||||
GITHUB_IMAGE_NAME="iwumingz/${CONTAINER_NAME}"
|
GITHUB_IMAGE_NAME="iwumingz/${CONTAINER_NAME}"
|
||||||
GITHUB_IMAGE_PATH="ghcr.io/${GITHUB_IMAGE_NAME}"
|
GITHUB_IMAGE_PATH="ghcr.io/${GITHUB_IMAGE_NAME}"
|
||||||
PROJECT_PATH="/opt/${CONTAINER_NAME}"
|
PROJECT_PATH="/opt/${CONTAINER_NAME}"
|
||||||
PROJECT_VERSION="v1.0.3"
|
PROJECT_VERSION="v1.0.4"
|
||||||
|
|
||||||
red='\033[0;31m'
|
red='\033[0;31m'
|
||||||
green='\033[0;32m'
|
green='\033[0;32m'
|
||||||
@ -129,7 +129,7 @@ install_sycgram(){
|
|||||||
echo -e "${yellow}正在启动容器...${plain}"
|
echo -e "${yellow}正在启动容器...${plain}"
|
||||||
docker run $1 \
|
docker run $1 \
|
||||||
--name ${CONTAINER_NAME} \
|
--name ${CONTAINER_NAME} \
|
||||||
--env TZ="Asia/Shanghai" \
|
--env TZ=$(timedatectl | grep "Time zone" | awk '{print $3}') \
|
||||||
--restart always \
|
--restart always \
|
||||||
--hostname ${CONTAINER_NAME} \
|
--hostname ${CONTAINER_NAME} \
|
||||||
-v ${PROJECT_PATH}/data:/sycgram/data \
|
-v ${PROJECT_PATH}/data:/sycgram/data \
|
||||||
|
Loading…
Reference in New Issue
Block a user