-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
41 lines (28 loc) · 996 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
echo "Enter the project name:"
read -r project_name
echo "Enter the default namespace:"
read -r namespace
echo "Enter the SonarCloud URL:"
read -r sonarcloud_url
echo "Enter the HealthChecks.io ID:"
read -r healthchecks_id
echo "Setting up project: $project_name"
# Update .wakatime and README.md
sed -i "s/TemplateProject/$project_name/g" .wakatime-project
sed -i "s/TemplateProject/$project_name/g" README.md
# Update composer.json
sed -i "s/TemplateNamespace/$namespace/g" composer.json
# Update Healthchecks.io badge
echo "Please create a HealthChecks.io account if needed."
sed -i "s/HealthChecksId/$healthchecks_id/g" README.md
# Update SonarCloud URL
sed -i "s|SonarCloudUrl|$sonarcloud_url|g" README.md
# Run composer install
echo "Running composer install..."
composer install
echo "Project setup complete."
# Additional PHP setup tasks
echo "Performing additional PHP setup tasks..."
# Add any additional setup commands here
echo "Setup finished successfully."