chg: [kali] Fixed perms at the end

pull/3474/head
Steve Clement 2018-07-11 21:37:20 +02:00
parent 36a8c1849b
commit 5213b9b2e5
1 changed files with 6 additions and 0 deletions

View File

@ -454,6 +454,12 @@ sed -i "s/^misp_url\ =/misp_url\ =\ http:\/\/localhost/g" ~/.viper/viper.conf
sed -i "s/^misp_key\ =/misp_key\ =\ $AUTH_KEY/g" ~/.viper/viper.conf
sqlite3 ~/.viper/admin.db 'UPDATE auth_user SET password="pbkdf2_sha256$100000$iXgEJh8hz7Cf$vfdDAwLX8tko1t0M1TLTtGlxERkNnltUnMhbv56wK/U="'
sudo chown -R www-data:www-data $PATH_TO_MISP
sudo chmod -R 750 $PATH_TO_MISP
sudo chmod -R g+ws $PATH_TO_MISP/app/tmp
sudo chmod -R g+ws $PATH_TO_MISP/app/files
sudo chmod -R g+ws $PATH_TO_MISP/app/files/scripts/tmp
echo "Admin (root) DB Password: $DBPASSWORD_ADMIN" > mysql.txt
echo "User (misp) DB Password: $DBPASSWORD_MISP" >> mysql.txt
echo "Authkey: $AUTH_KEY" > authkey.txt