@@ -211,6 +211,9 if [ "$ENABLE_SYSTEMDSWAP" = true ] ; then | |||||
211 | # Change into downloaded src dir |
|
211 | # Change into downloaded src dir | |
212 | cd "${R}/tmp/systemd-swap" || exit |
|
212 | cd "${R}/tmp/systemd-swap" || exit | |
213 |
|
213 | |||
|
214 | # Get Verion | |||
|
215 | VERSION=$(git tag | tail -n 1) | |||
|
216 | ||||
214 | # Build package |
|
217 | # Build package | |
215 | bash ./package.sh debian |
|
218 | bash ./package.sh debian | |
216 |
|
219 | |||
@@ -221,7 +224,7 if [ "$ENABLE_SYSTEMDSWAP" = true ] ; then | |||||
221 | chown -R root:root "${R}/tmp/systemd-swap" |
|
224 | chown -R root:root "${R}/tmp/systemd-swap" | |
222 |
|
225 | |||
223 | # Install package - IMPROVE AND MAKE IT POSSIBLE WITHOUT VERSION NR. |
|
226 | # Install package - IMPROVE AND MAKE IT POSSIBLE WITHOUT VERSION NR. | |
224 |
chroot_exec dpkg -i /tmp/systemd-swap/systemd-swap_ |
|
227 | chroot_exec dpkg -i /tmp/systemd-swap/systemd-swap_$VERSION_all.deb | |
225 |
|
228 | |||
226 | # Enable service |
|
229 | # Enable service | |
227 | chroot_exec systemctl enable systemd-swap |
|
230 | chroot_exec systemctl enable systemd-swap |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant