mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-03-23 00:05:28 +08:00
standardize apt-get
This commit is contained in:
parent
90e8c324fd
commit
4cb41ff9f3
10
root/etc/cont-init.d/94-php8-src
Normal file
10
root/etc/cont-init.d/94-php8-src
Normal file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
ppa="ppa:ondrej/php"
|
||||
if ! grep -q "^deb .*${ppa}" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
|
||||
echo "**** adding ppa ondrej/php ****"
|
||||
if ! dpkg -l | grep software-properties-common > /dev/null; then
|
||||
apt-get update && apt-get install -y software-properties-common
|
||||
fi
|
||||
add-apt-repository ${ppa} -y
|
||||
fi
|
||||
3
root/etc/cont-init.d/95-apt-get
Normal file
3
root/etc/cont-init.d/95-apt-get
Normal file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
apt-get update
|
||||
@ -1,14 +1,6 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
echo "**** adding ppa ondrej/php ****"
|
||||
apt-get update && apt-get install -y \
|
||||
software-properties-common
|
||||
ppa="ppa:ondrej/php"
|
||||
if ! grep -q "^deb .*${ppa}" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
|
||||
add-apt-repository ${ppa} -y
|
||||
fi
|
||||
|
||||
echo "**** installing php and composer ****"
|
||||
apt-get update && apt-get install -y \
|
||||
echo "**** installing php8 and composer ****"
|
||||
apt-get install -y \
|
||||
composer \
|
||||
php8.0
|
||||
Loading…
x
Reference in New Issue
Block a user