Initial commit

This commit is contained in:
2024-07-13 00:53:45 +03:00
commit 00eabc8150
25 changed files with 870 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#!/bin/bash
# Check if project_name argument is provided
if [ -z "$PROJECT_NAME" ]; then
echo "Error: PROJECT_NAME is not set."
exit 1
fi
project_name="$PROJECT_NAME"
# Create /var/www directory
mkdir -p /var/www
# Change group of /var/www directory to oleg20111511
chgrp oleg20111511 /var/www
# Change permissions of /var/www directory to 775
chmod 775 /var/www
# Create /var/www/logs/"project_name" directory
# mkdir -p "/var/www/logs/$project_name"
echo "Project setup complete."