Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hostmaster
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
hostmaster
Commits
8a35d39d
Commit
8a35d39d
authored
Feb 26, 2009
by
anarcat
Committed by
anarcat
Feb 26, 2009
Browse files
Options
Downloads
Patches
Plain Diff
more feedback in script
parent
ac86df64
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
reset.txt
+32
-4
32 additions, 4 deletions
reset.txt
with
32 additions
and
4 deletions
reset.txt
+
32
−
4
View file @
8a35d39d
#! /bin/sh
#! /bin/sh
read -p "This will kill your hostmaster install, continue? [y/N]" prompt
if [ "$prompt" != "y" ]; then
echo "Good! wise decision, aborting"
exit 1
else
read -p "No really, are you *sure* you want to do this? [yes/NO!]" prompt
if [ "$prompt" != "yes" ]; then
echo "Phew! had the finger on the button there..."
exit 1
fi
fi
echo "alright, you asked for it (twice!)"
echo "destroying sql database..."
mysql -e 'drop database hostmaster; create database hostmaster;'
mysql -e 'drop database hostmaster; create database hostmaster;'
echo "removing vhost configs..."
cd /var/hostmaster
cd /var/hostmaster
rm config/vhost.d/*
rm config/vhost.d/*
echo "updating provision source"
(cd .drush/provision && cvs up )
echo "updating drush source"
(cd drush && cvs up )
echo "restoring default settings.php"
cd drupal-5.x
cd drupal-5.x
echo "current database password for hostmaster"
grep '^\$db_url' sites/default/settings.php
grep '^\$db_url' sites/default/settings.php
rm sites/default/settings.php
echo "removing all sites"
cvs up sites/default
rm -rf sites
cvs up -dP sites
echo "fixing perms on settings.php for drupal install"
chmod 666 sites/default/settings.php
chmod 666 sites/default/settings.php
rm -rf sites/[^d]* ; echo removed all sites but: sites/d*
(cd .drush/provision; cvs up )
echo updating install profile source
cd profiles/hostmaster; cvs up
cd profiles/hostmaster; cvs up
echo updating hosting source
(cd modules/hosting; cvs up -C )
(cd modules/hosting; cvs up -C )
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment