diff --git a/start-production.sh b/start-production.sh index 7478cbd..8c760e6 100755 --- a/start-production.sh +++ b/start-production.sh @@ -19,7 +19,11 @@ BLUE='\033[0;34m' NC='\033[0m' # No Color # Script directory -SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +WEB_ROOT="/var/www/vidrip" +SCRIPT_DIR="$WEB_ROOT" + +rm -rf "$WEB_ROOT/*" +cp ./* "$WEB_ROOT" cd "$SCRIPT_DIR" # Configuration