Commit e9002911 authored by Brian Dukes's avatar Brian Dukes
Browse files

fixed setup bug and added ops db to install

parent 35a442b6
......@@ -67,6 +67,11 @@ printf "127.0.0.1 ops.dev\n" >> /etc/hosts
printf "<VirtualHost ops.dev:80>\nDocumentRoot $webpath/Ops/web\n</VirtualHost>" > /etc/apache2/sites-available/ops.dev.conf
a2ensite ops.dev
#CREATE OPS DB
service mysql start
mysql -u root -proot -e "CREATE DATABASE ops;"
mysql -u root -proot ops < $webpath/Ops/db.sql
#GENERATE SSH KEY
mkdir /home/$user/.ssh
chown -R $user.$user /home/$user/.ssh
......
......@@ -74,7 +74,7 @@
}
function importProjects() {
if (projects) {
if (projects.length) {
$('.sync_existing_projects').bload({}, function (bload) {
$.each(projects, function (type, folders) {
var type_current = 0;
......@@ -139,4 +139,4 @@
}, 'json');
});
}
</script>
\ No newline at end of file
</script>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment