[enh] First release

This commit is contained in:
zamentur 2019-10-09 23:59:58 +02:00
parent 33643e4d72
commit 5d4f2fce23

33
yunohost Normal file
View file

@ -0,0 +1,33 @@
SUITE="stretch"
ls -l /home/
ls -l /usr/share/debootstrap/scripts/stretch
. /usr/share/debootstrap/scripts/stretch
save_function() {
local ORIG_FUNC=$(declare -f $1)
local NEWNAME_FUNC="$2${ORIG_FUNC#$1}"
eval "$NEWNAME_FUNC"
}
save_function second_stage_install origin_second_stage_install
second_stage_install() {
SUITE="stretch"
origin_second_stage_install $@
echo "deb http://ftp.fr.debian.org/debian stretch main" > $TARGET/etc/apt/sources.list.d/wtf.list
in_target apt update
in_target apt install -y wget debhelper
in_target wget -O /root/install_yunohost https://install.yunohost.org
in_target chmod a+x /root/install_yunohost
mv "$TARGET/sbin/start-stop-daemon" "$TARGET/sbin/start-stop-daemon.REAL"
echo "#!/bin/sh
echo
echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/start-stop-daemon"
chmod 755 "$TARGET/sbin/start-stop-daemon"
in_target /root/install_yunohost -a -d stable
mv "$TARGET/sbin/start-stop-daemon.REAL" "$TARGET/sbin/start-stop-daemon"
}