em-shop/users/run.prod.sh
2024-11-20 09:53:03 +05:00

8 lines
177 B
Bash
Executable File

#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo -e "\033[31mThis script requires superuser rights.\033[0m"
exit 0
fi
sudo docker compose up -d --build --force-recreate