Commit e24ff7f7 authored by Edvard Rejthar's avatar Edvard Rejthar

another travis try, let's rebase this afterwards

parent e143e09a
/nbproject/private/
\ No newline at end of file
.idea
......@@ -9,19 +9,22 @@ PROFILE_COUNT=21
apt install software-properties-common
add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
apt update
apt-get install firefox python3 mariadb-server # X should be distributed with python python3-pip
apt install firefox python3 mariadb-server
pip3 install xvfbwrapper pymysql peewee jinja2 pyyaml bs4 pygments pillow requests
# current dir
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
# mariadb setup
mysql -u root < /opt/mdmaug-installer/mdmaug-installation.sql # populate db
systemctl start mariadb.service
mysql -u root < mdmaug-installation.sql # populate db
mysql -uroot -e "CREATE USER 'mdmaug'@'localhost' IDENTIFIED BY 'fidFDSs676'; GRANT ALL PRIVILEGES ON mdmaug. * TO 'mdmaug'@'%';" # new user
# adding user the server will be run under
useradd -m -d $DESTINATION mdmaug
# copy all important files
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
cp -r mdmaug $DESTINATION
cp -r .mozilla $DESTINATION
cp *.md $DESTINATION
......@@ -31,7 +34,11 @@ cd $DESTINATION
for(( i=1; i<=$((PROFILE_COUNT-1)); i++ ))
do
DEST=$DESTINATION/.mozilla/firefox/$i/
[ -d $DEST ] && "profile $i already exists, wont change" || cp -R .mozilla/firefox/0 $DEST
if [ -d $DEST ]; then
echo "profile $i already exists, wont change"
else
cp -R .mozilla/firefox/0 $DEST
fi
done
......
file.reference.opt-mdmaug-installer=.
java.lib.path=
platform.active=Python_3.5.1
python.lib.path=
src..mozilla.dir=.mozilla
src.mdmaug.dir=mdmaug
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.python.project</type>
<configuration>
<data xmlns="http://nbpython.dev.java.net/ns/php-project/1">
<name>mdmaug</name>
<sources>
<root id="src..mozilla.dir"/>
<root id="src.mdmaug.dir"/>
</sources>
<tests/>
</data>
</configuration>
</project>
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