Skip to content

Commit

Permalink
Correct BACKUP_TIME hour format to H instead of k as breaking cmnd line
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerric Chaplin committed Apr 19, 2020
1 parent ef73708 commit f3f88ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/templates/user-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ EOF

cat > /usr/local/bin/backup_etcd << EOF
FILE_NAME="rancher-data-v${rancher_version}"
BACKUP_TIME=\$(date +%Y%m%d-%k%M)
BACKUP_TIME=\$(date +%Y%m%d-%H%M)
systemctl stop rancher-v${rancher_version} && \
sleep 60 && \
docker create --volumes-from rancher-v${rancher_version} --name \$${FILE_NAME}-\$${BACKUP_TIME} rancher/rancher:v${rancher_version} && \
Expand Down

0 comments on commit f3f88ab

Please sign in to comment.