Skip to content
Snippets Groups Projects
Commit 60b06514 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

spezielle Regel pro Ubuntu-Version

parent bca9c535
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,9 @@ SUSE_REPOS:=$(addprefix $(REPOS_ROOT),$(SUSE_REPOS)) ...@@ -16,7 +16,9 @@ SUSE_REPOS:=$(addprefix $(REPOS_ROOT),$(SUSE_REPOS))
DEB_REPOS="Ubuntu_18.04" DEB_REPOS="Ubuntu_18.04"
DEB_REPOS:=$(addprefix $(REPOS_ROOT),$(DEB_REPOS)) DEB_REPOS:=$(addprefix $(REPOS_ROOT),$(DEB_REPOS))
all: init_suse init_deb upload DEB_REPO_BIONIC=$(addprefix $(REPOS_ROOT),"Ubuntu_18.04")
all: init_suse init_deb_bionic upload
#all: init_suse upload #all: init_suse upload
init_suse: init_suse:
...@@ -27,7 +29,7 @@ init_debX: ...@@ -27,7 +29,7 @@ init_debX:
do \ do \
(cd "$$i"; dpkg-scanpackages ./ | gzip -9c > Packages.gz) \ (cd "$$i"; dpkg-scanpackages ./ | gzip -9c > Packages.gz) \
done done
init_deb: init_deb:
@for i in $(DEB_REPOS); \ @for i in $(DEB_REPOS); \
do \ do \
...@@ -35,6 +37,10 @@ init_deb: ...@@ -35,6 +37,10 @@ init_deb:
gzip -9c > Packages.gz) \ gzip -9c > Packages.gz) \
done done
init_deb_bionic:
cd $(DEB_REPO_BIONIC); \
reprepro includedeb bionic *.deb | gzip -9c > Packages.gz
upload: upload:
rsync -avz --delete ./repos root@$(TARGET_SERVER):$(TARGET_PATH) rsync -avz --delete ./repos root@$(TARGET_SERVER):$(TARGET_PATH)
ssh root@$(TARGET_SERVER) 'chown -R wwwrun.www $(TARGET_PATH)*' ssh root@$(TARGET_SERVER) 'chown -R wwwrun.www $(TARGET_PATH)*'
......
...@@ -40,6 +40,6 @@ sudo zypper addrepo \ ...@@ -40,6 +40,6 @@ sudo zypper addrepo \
**Beispiel:** **Beispiel:**
``` ```
sudo echo 'deb [arch=amd64] http://a73435.berlin.ptb.de:84/repos/Ubuntu_18.04/ bionic main' > \ sudo echo 'deb [arch=amd64] http://a73435.berlin.ptb.de:84/repos/Ubuntu_18.04/ bionic main' > \
/etc/apt/sources.list.d/vaclab.list /etc/apt/sources.list.d/vaclab.list
curl -L http://a73435.berlin.ptb.de:84/repos/Ubuntu_18.04/KEY.gpg | sudo apt-key add - curl -L http://a73435.berlin.ptb.de:84/repos/Ubuntu_18.04/KEY.gpg | sudo apt-key add -
``` ```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment