-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild_deb.sh
29 lines (23 loc) · 1.27 KB
/
build_deb.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
mkdir -p deb/usr/share/linux-arbeitsplatz
cp -r src/lac/* deb/usr/share/linux-arbeitsplatz/
# Disable DEBUG mode
sed -i "s/DEBUG = True/DEBUG = False/g" deb/usr/share/linux-arbeitsplatz/lac/settings.py
cp install.sh deb/usr/share/linux-arbeitsplatz
cp run.sh deb/usr/share/linux-arbeitsplatz
cp unix_service.sh deb/usr/share/linux-arbeitsplatz
cp cfg.example deb/usr/share/linux-arbeitsplatz/
cp openbox-autostart deb/usr/share/linux-arbeitsplatz/
cp prepare_for_first_boot.sh deb/usr/share/linux-arbeitsplatz/
cp requirements.txt deb/usr/share/linux-arbeitsplatz/
cp update_libre_workspace.sh deb/usr/share/linux-arbeitsplatz/
cp django_reset_2fa_for_Administrator.sh deb/usr/share/linux-arbeitsplatz/
cp django_set_local_Administrator_password.sh deb/usr/share/linux-arbeitsplatz/
cp django_add_oidc_provider_client.sh deb/usr/share/linux-arbeitsplatz/
chmod +x deb/usr/share/linux-arbeitsplatz/install.sh
chmod +x deb/usr/share/linux-arbeitsplatz/run.sh
chmod +x deb/usr/share/linux-arbeitsplatz/unix_service.sh
chmod 755 deb/DEBIAN
chmod 755 deb/DEBIAN/postinst
dpkg-deb --build -Zxz --root-owner-group deb
mv deb.deb linux-arbeitsplatz.deb
echo "!!!Ensure that you build the deb package from a fresh cloned repository! (Otherwise some control files might disturb linux-arbeitplatz later)!!!"