mirror of
https://github.com/Tooloop/Tooloop-Packages.git
synced 2026-04-27 20:41:37 +02:00
19 lines
563 B
Bash
Executable File
19 lines
563 B
Bash
Executable File
#!/bin/bash
|
|
echo "-------------------------------------------------------------------------"
|
|
echo "Copying packages to local repository"
|
|
echo ""
|
|
|
|
# move them to the repository
|
|
for archive in *; do
|
|
# if [ -d $folder ] && [ ${folder:0:1} != "#" ]; then
|
|
# mv $folder/*.deb /assets/packages
|
|
# fi
|
|
if [[ $archive =~ \.zip$ ]] && [ ${archive:0:1} != "#" ]; then
|
|
unzip -o $archive -d /assets/packages/
|
|
fi
|
|
done
|
|
|
|
# update local package repository
|
|
/opt/tooloop/scripts/tooloop-update-packages
|
|
|
|
sudo systemctl restart tooloop-control.service |