CT mysql, jenkins: Fixed Typo in First run scripts

This commit is contained in:
2023-08-24 23:09:58 +02:00
parent de5c254ae9
commit 1a7e098644
2 changed files with 3 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ LXCBuilderIP=<ip.of.the.BuilderCT>
#StaticVars
AdminPassword=$(cat /var/lib/jenkins/secrets/initialAdminPassword)
JeninsPlugins="dark-theme ssh-slaves workflow-aggregator locale golang git dark-theme copyartifact ws-cleanup pipeline-stage-view custom-checkbox-parameter parameterized-scheduler"
JenkinsPlugins="dark-theme ssh-slaves workflow-aggregator locale golang git dark-theme copyartifact ws-cleanup pipeline-stage-view custom-checkbox-parameter parameterized-scheduler"
#Check if script is configured
if [ $ThisScriptConfigured = no ]; then
@@ -19,7 +19,7 @@ fi
#Download Jenkins-CLI tool
curl localhost:8080/jnlpJars/jenkins-cli.jar -o /opt/jenkins-cli.jar
#Install Plugins
java -jar /opt/jenkins-cli.jar -s http://localhost:8080/ -webSocket -auth admin:$AdminPassword install-plugin $JeninsPlugins
java -jar /opt/jenkins-cli.jar -s http://localhost:8080/ -webSocket -auth admin:$AdminPassword install-plugin $JenkinsPlugins
echo "jenkins.model.Jenkins.instance.securityRealm.createAccount(\"$JenkinsUsername\", \"$JenkinsPassword\")" | java -jar /opt/jenkins-cli.jar -s "http://localhost:8080" -webSocket -auth admin:$AdminPassword groovy =
#Installed plugin versions
@@ -53,4 +53,4 @@ java -jar /opt/jenkins-cli.jar -s http://localhost:8080/ -webSocket -auth admin:
java -jar /opt/jenkins-cli.jar -s http://localhost:8080/ -webSocket -auth admin:$AdminPassword build LXC-ImgBuilder/Debian-LXC
java -jar /opt/jenkins-cli.jar -s http://localhost:8080/ -webSocket -auth admin:$AdminPassword build LXC-ImgBuilder/Alpine-LXC
echo "Debian-LXC and Alpine-LXC build will fail, this is expected behaviour"
echo "Next step is to login to the jenins instance, update the credentials for the Node and delete the admin user"
echo "Next step is to login to the Jenkins instance, update the credentials for the Node and delete the admin user"

View File

@@ -4,7 +4,6 @@ echo
#StaticVars
TempPassword=$(cat /opt/Setup/TempMysqlPasswd)
JeninsPlugins="dark-theme ssh-slaves workflow-aggregator locale golang git dark-theme copyartifact ws-cleanup"
#Configure PhpMyAdmin
mysql -u root --password="$TempPassword" < /opt/PhpMyAdmin/sql/create_tables.sql