Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 3.147.68.138
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/2/root/proc/2/cwd/proc/3/root/var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /proc/2/root/proc/2/cwd/proc/3/root/var/lib/dpkg/info/mysql-apt-config.postinst
#!/bin/bash

# Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
#
# This program 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; version 2 of the License.
#
# This program 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 this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA

. /usr/share/debconf/confmodule

create_temp_mysql_gpg_file () {
	cat <<EOF > $1
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1

mQINBGU2rNoBEACSi5t0nL6/Hj3d0PwsbdnbY+SqL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oIUuEZXjHQtsYfTZZhrjUWB
J09jrMvlKUHLnS437SLbgoXVYZmcqwAWpVNOLZf+fFm4IE5aGBG5Dho2CZ6ujngW
9Zkn98T1d4N0MEwwXa2V6T1ijzcqD7GApZUAEQEAAYkCPAQYAQgAJhYhBLykNBfD
tIXdEo7G1Lezt4io03hcBQJlNqzaAhsMBQkDwmcAAAoJELezt4io03hcXqMP/01a
PT3A3Sg7oTQoHdCxj04ELkzrezNWGM+YwbSKrR2LoXR8zf2tBFzc2/Tl98V0+68f
/eCvkvqCuOtq4392Ps23j9W3r5XG+GDOwDsx0gl0E+Qkw07pwdJctA6efsmnRkjF
2YVO0N9MiJA1tc8NbNXpEEHJZ7F8Ri5cpQrGUz/AY0eae2b7QefyP4rpUELpMZPj
c8Px39Fe1DzRbT+5E19TZbrpbwlSYs1iCzS5YGFmpCRyZcLKXo3zS6N22+82cnRB
SPPipiO6WaQawcVMlQO1SX0giB+3/DryfN9VuIYd1EWCGQa3O0MVu6o5KVHwPgl9
R1P6xPZhurkDpAd0b1s4fFxin+MdxwmG7RslZA9CXRPpzo7/fCMW8sYOH15DP+Yf
UckoEreBt+zezBxbIX2CGGWEV9v3UBXadRtwxYQ6sN9bqW4jm1b41vNA17b6CVH6
sVgtU3eN+5Y9an1e5jLD6kFYx+OIeqIIId/TEqwS61csY9aav4j4KLOZFCGNU0FV
ji7NQewSpepTcJwfJDOzmtiDP4vol1ApJGLRwZZZ9PB6wsOgDOoP6sr0YrDI/NNX
2RyXXbglnQ1yJZVSH3/3eo6knG2qTthUKHCRDNKdy9Qqc1x4WWWtSRjh+zX8AvJK
2q1rVLH2/3ilxe9wcAZUlaj3id3TxquAlud4lWDz
=h5nH
-----END PGP PUBLIC KEY BLOCK-----
EOF
	chmod 400 $1
}
remove_temp_mysql_gpg_file () {
	if [ -f "$1" ];
	then
		rm -f $1
	fi
}

save_settings() {
	set -e

	SERVER=0
	TOOLS=1
	PREVIEW=2
	SIGNEDBY="[signed-by=/usr/share/keyrings/mysql-apt-config.gpg]"
	db_get mysql-apt-config/repo-distro && DISTRO=$RET
	db_get mysql-apt-config/repo-codename && PLATFORM=$RET
	db_get mysql-apt-config/repo-url && REPO_URL_BASE=$RET
	if [ ! "${DISTRO}" = "ubuntu" -a ! "${DISTRO}" = "debian" ];
	then
		echo "Unsupported distribution ${DISTRO}"
		echo "To manually select package repository, please run dpkg-reconfigure mysql-apt-config"
		exit 0
	fi
	REPO_URL="${REPO_URL_BASE}/${DISTRO}/"

	db_get mysql-apt-config/select-server		&& SELECT[${SERVER}]=$RET
	db_get mysql-apt-config/select-tools		&& SELECT[${TOOLS}]=$RET
	db_get mysql-apt-config/select-preview		&& SELECT[${PREVIEW}]=$RET
	DEB[${SERVER}]=""
	DEB[${TOOLS}]=""
	DEB[${PREVIEW}]=""

	DEB_SRC[${SERVER}]=""
	DEB_SRC[${TOOLS}]=""
	DEB_SRC[${PREVIEW}]=""

	if [ -z "${SELECT[${SERVER}]}" ] || [ "${SELECT[${SERVER}]}" = "${NULL}" ];
	then
		DEB[${SERVER}]="# deb ${SIGNEDBY} ${REPO_URL} ${PLATFORM} mysql-5.7"
		DEB_SRC[${SERVER}]="# deb-src ${SIGNEDBY} ${REPO_URL} ${PLATFORM} mysql-5.7"
	else
		DEB[${SERVER}]="deb ${SIGNEDBY} ${REPO_URL} ${PLATFORM} ${SELECT[${SERVER}]}"
		DEB_SRC[${SERVER}]="deb-src ${SIGNEDBY} ${REPO_URL} ${PLATFORM} ${SELECT[${SERVER}]}"
	fi

	if [ "${SELECT[${TOOLS}]}" = "Enabled" ];
	then
		DEB[${TOOLS}]="deb ${SIGNEDBY} ${REPO_URL} ${PLATFORM} mysql-tools"
	else
		DEB[${TOOLS}]="#deb ${SIGNEDBY} ${REPO_URL} ${PLATFORM} mysql-tools"
	fi

	if [ "${SELECT[${PREVIEW}]}" = "Enabled" ];
	then
		DEB[${PREVIEW}]="deb ${SIGNEDBY} ${REPO_URL} ${PLATFORM} mysql-tools-preview"
	else
		DEB[${PREVIEW}]="#deb ${SIGNEDBY} ${REPO_URL} ${PLATFORM} mysql-tools-preview"
	fi

	cat <<EOF > /etc/apt/sources.list.d/mysql.list
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out entries below, but any other modifications may be lost.
# Use command 'dpkg-reconfigure mysql-apt-config' as root for modifications.
deb ${SIGNEDBY} ${REPO_URL} ${PLATFORM} mysql-apt-config
${DEB[${SERVER}]}
${DEB[${TOOLS}]}
${DEB[${PREVIEW}]}
${DEB_SRC[${SERVER}]}
EOF
	set +e
}

case "$1" in
	configure)

	GPG_FILE=`mktemp`
	create_temp_mysql_gpg_file $GPG_FILE
	cat $GPG_FILE | gpg -o /usr/share/keyrings/mysql-apt-config.gpg --dearmor
	remove_temp_mysql_gpg_file $GPG_FILE

	save_settings

	;;

	reconfigure)

	save_settings

	;;
esac

Anon7 - 2022
AnonSec Team