Skip to content

Instantly share code, notes, and snippets.

@ringmaster
Created August 26, 2013 21:24
Show Gist options
  • Save ringmaster/6346828 to your computer and use it in GitHub Desktop.
Save ringmaster/6346828 to your computer and use it in GitHub Desktop.
ownCloud clean script
#!/bin/bash
pushd /c/xampp/htdocs/vdr/master.oc.claire/htdocs
rm config/config.php
mysqladmin -f -s -uroot drop oc_master
mysqladmin -f -s -uroot create oc_master
rm -rf data/*
rm -rf data/.htaccess
#echo "<?php
#\$AUTOCONFIG = array(
# 'dbtype' => 'mysql',
# 'dbname' => 'oc_master',
# 'dbuser' => 'owncloud',
# 'dbpass' => 'password',
# 'dbhost' => 'localhost',
# 'dbtableprefix' => '',
# 'adminlogin' => 'admin',
# 'adminpass' => 'password',
# 'directory' => dirname(__DIR__) . '/data' ,
#);
#" > config/autoconfig.php
#curl http://master.oc.claire/
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment