#! /bin/bash current_time=$(date "+%Y.%m.%d-%H.%M.%S") repo_name="packages-"$current_time
package_dir="/opt/custom_packages/"
release_name="sugam" release_version="2.1"
snapshot_name=$release_name-$release_version-inhouse-$current_time
# Create new repo with updates packages
aptly repo create $repo_name
aptly repo add $repo_name $package_dir aptly snapshot create $snapshot_name from repo $repo_name
# For now manually take care of merging the snaoshots and the publish, it may be # fatal in case something happened incorrectly in this procedure