Server IP : 85.214.239.14 / Your IP : 3.145.89.181 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/3/root/proc/3/cwd/proc/2/cwd/var/lib/dpkg/info/ |
Upload File : |
#!/bin/sh # See deb-preinst(5). set -e : "${DPKG_ADMINDIR:=/var/lib/dpkg}" # Rename state directories to match renamed method names. rename_method_state_dir() { methodoldname="$1" methodoldopt="$2" methodnewname="$3" methodnewopt="$4" methodsdir="$DPKG_ADMINDIR/methods" if [ -d "$methodsdir/$methodoldname" ]; then if [ -e "$methodsdir/$methodnewname" ]; then rm -rf "$methodsdir/$methodoldname" else if [ -e "$methodsdir/$methodoldname/shvar.$methodoldopt" ]; then cp -a "$methodsdir/$methodoldname/shvar.$methodoldopt" \ "$methodsdir/$methodoldname/shvar.$methodnewopt" fi mv "$methodsdir/$methodoldname" "$methodsdir/$methodnewname" rm -f "$methodsdir/$methodnewname/shvar.$methodoldopt" fi # Update the currently selected method and option if needed. sed -i -e "s/^$methodoldname $methodoldopt/$methodnewname $methodnewopt/" \ "$DPKG_ADMINDIR/cmethopt" fi } case "$1" in install|upgrade) if [ -n "$2" ]; then rename_method_state_dir disk mounted file file rename_method_state_dir multicd multi_cd media media fi ;; abort-upgrade) ;; *) echo "$0 called with unknown argument '$1'" 1>&2 exit 1 ;; esac exit 0