-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from VultureProject/dev
Release 1.77
- Loading branch information
Showing
11 changed files
with
227 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
vulture_toolkit/update_api/update_scripts/GUI-1.77/maj_portal-logs.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
# | ||
# This migration script install newest Vulture-LIBS package | ||
# | ||
# | ||
|
||
. /etc/rc.conf | ||
|
||
if [ "$http_proxy" != "" ] | ||
then | ||
export https_proxy="http://$http_proxy" | ||
export http_proxy="http://$http_proxy" | ||
fi | ||
|
||
dir="/var/log/Vulture/portal" | ||
|
||
for file in "debug.log" \ | ||
"portal_authentication.log" \ | ||
"redis_events.log" ; do | ||
/usr/bin/touch "$dir/$file" | ||
/bin/chmod 644 "$dir/$file" | ||
/usr/sbin/chown vlt-portal:vlt-web "$dir/$file" | ||
done |
40 changes: 40 additions & 0 deletions
40
vulture_toolkit/update_api/update_scripts/GUI-1.77/maj_vulture-LIBS.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/sh | ||
# | ||
# This migration script install newest Vulture-LIBS package | ||
# | ||
# | ||
|
||
. /etc/rc.conf | ||
|
||
if [ "$http_proxy" != "" ] | ||
then | ||
export https_proxy="http://$http_proxy" | ||
export http_proxy="http://$http_proxy" | ||
fi | ||
|
||
cd /tmp | ||
|
||
/bin/echo "[+] Updating Vulture-LIBS from branch \"$1\"..." | ||
/bin/rm -f /tmp/Vulture-LIBS.tar.gz | ||
|
||
bsd_version=$(/usr/bin/uname -r | /usr/bin/cut -d '-' -f 1) | ||
url="https://dl.vultureproject.org/$bsd_version$1/Vulture-LIBS.tar.gz" | ||
|
||
/bin/echo -n "[+] Downloading from '$url' ..." | ||
/usr/local/bin/wget --no-check-certificate $url >>/tmp/installation.log 2>&1 | ||
/bin/echo "DONE" | ||
|
||
cd /home/vlt-gui | ||
/bin/rm -rf ./env | ||
/usr/bin/tar xf /tmp/Vulture-LIBS.tar.gz | ||
/usr/sbin/chown -R vlt-gui:vlt-gui /home/vlt-gui/ | ||
|
||
/bin/echo -n "[+] Installing Vulture libraries ..." | ||
/bin/sh "/home/vlt-gui/lib-$bsd_version/install.sh" | ||
/bin/echo "OK" | ||
|
||
/bin/echo "[+] Installing required libraries for Images ..." | ||
/usr/sbin/pkg install -y libxcb && echo "OK" || (echo "KO" && echo "[!] Please install following packages manually : libxcb") | ||
|
||
/bin/echo "[*] Update of Vulture-LIBS ended" | ||
|
43 changes: 43 additions & 0 deletions
43
vulture_toolkit/update_api/update_scripts/GUI-1.77/reload_apps_conf.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/home/vlt-gui/env/bin/python | ||
# coding:utf-8 | ||
|
||
"""This file is part of Vulture 3. | ||
Vulture 3 is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
Vulture 3 is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with Vulture 3. If not, see http://www.gnu.org/licenses/. | ||
""" | ||
__author__ = "Kevin Guillemot" | ||
__credits__ = [] | ||
__license__ = "GPLv3" | ||
__version__ = "3.0.0" | ||
__maintainer__ = "Vulture Project" | ||
__email__ = "[email protected]" | ||
__doc__ = """This migration script reload Rsyslog and Logrotate configurations, and restart services if needed """ | ||
|
||
import os | ||
import sys | ||
|
||
sys.path.append('/home/vlt-gui/vulture') | ||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", 'vulture.settings') | ||
|
||
import django | ||
django.setup() | ||
|
||
from gui.models.system_settings import Cluster | ||
from gui.signals.gui_signals import config_modified | ||
|
||
if __name__ == '__main__': | ||
|
||
config_modified.send(sender=Cluster, id=None) | ||
|
||
print("Applications configuration reloaded.") |
42 changes: 42 additions & 0 deletions
42
vulture_toolkit/update_api/update_scripts/GUI-1.77/reload_rsyslogd_conf.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/home/vlt-gui/env/bin/python | ||
# coding:utf-8 | ||
|
||
"""This file is part of Vulture 3. | ||
Vulture 3 is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
Vulture 3 is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with Vulture 3. If not, see http://www.gnu.org/licenses/. | ||
""" | ||
__author__ = "Kevin Guillemot" | ||
__credits__ = [] | ||
__license__ = "GPLv3" | ||
__version__ = "3.0.0" | ||
__maintainer__ = "Vulture Project" | ||
__email__ = "[email protected]" | ||
__doc__ = """This migration script reload Rsyslog configuration""" | ||
|
||
import os | ||
import sys | ||
|
||
sys.path.append('/home/vlt-gui/vulture') | ||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", 'vulture.settings') | ||
|
||
import django | ||
django.setup() | ||
|
||
from gui.signals.gui_signals import log_modified | ||
|
||
if __name__ == '__main__': | ||
|
||
log_modified.send(sender=None) | ||
|
||
print("Rsyslogd configuration reloaded.") |