Rename Debian package from skyview to skyview-adsb
The official Debian repositories already contain a package named "skyview" which is associated with NASA's SkyView Virtual Observatory (https://skyview.gsfc.nasa.gov/), a tool for astronomical data visualization. To avoid package naming conflicts and potential confusion for users, this commit renames our ADS-B aircraft tracking application package to "skyview-adsb". This clearly indicates the package's purpose (ADS-B tracking) while maintaining the SkyView brand identity. Changes: - Package name: skyview → skyview-adsb - System user/group: skyview → skyview-adsb - Config directory: /etc/skyview → /etc/skyview-adsb - Data directory: /var/lib/skyview → /var/lib/skyview-adsb - Log directory: /var/log/skyview → /var/log/skyview-adsb - Systemd service: skyview.service → skyview-adsb.service - Documentation path: /usr/share/doc/skyview → /usr/share/doc/skyview-adsb The binaries (/usr/bin/skyview and /usr/bin/beast-dump) remain unchanged as they don't conflict at the filesystem level. This ensures clean installation alongside any existing skyview packages and prevents apt/dpkg conflicts during installation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
61b735b226
commit
be5369c195
9 changed files with 162 additions and 37 deletions
28
debian/DEBIAN/postinst
vendored
28
debian/DEBIAN/postinst
vendored
|
|
@ -3,25 +3,25 @@ set -e
|
|||
|
||||
case "$1" in
|
||||
configure)
|
||||
# Create skyview user and group if they don't exist
|
||||
if ! getent group skyview >/dev/null 2>&1; then
|
||||
addgroup --system --quiet skyview
|
||||
# Create skyview-adsb user and group if they don't exist
|
||||
if ! getent group skyview-adsb >/dev/null 2>&1; then
|
||||
addgroup --system --quiet skyview-adsb
|
||||
fi
|
||||
|
||||
if ! getent passwd skyview >/dev/null 2>&1; then
|
||||
adduser --system --ingroup skyview --home /var/lib/skyview \
|
||||
--no-create-home --disabled-password --quiet skyview
|
||||
if ! getent passwd skyview-adsb >/dev/null 2>&1; then
|
||||
adduser --system --ingroup skyview-adsb --home /var/lib/skyview-adsb \
|
||||
--no-create-home --disabled-password --quiet skyview-adsb
|
||||
fi
|
||||
|
||||
# Create directories with proper permissions
|
||||
mkdir -p /var/lib/skyview /var/log/skyview >/dev/null 2>&1 || true
|
||||
chown skyview:skyview /var/lib/skyview /var/log/skyview >/dev/null 2>&1 || true
|
||||
chmod 755 /var/lib/skyview /var/log/skyview >/dev/null 2>&1 || true
|
||||
mkdir -p /var/lib/skyview-adsb /var/log/skyview-adsb >/dev/null 2>&1 || true
|
||||
chown skyview-adsb:skyview-adsb /var/lib/skyview-adsb /var/log/skyview-adsb >/dev/null 2>&1 || true
|
||||
chmod 755 /var/lib/skyview-adsb /var/log/skyview-adsb >/dev/null 2>&1 || true
|
||||
|
||||
# Set permissions on config files
|
||||
if [ -f /etc/skyview/config.json ]; then
|
||||
chown root:skyview /etc/skyview/config.json >/dev/null 2>&1 || true
|
||||
chmod 640 /etc/skyview/config.json >/dev/null 2>&1 || true
|
||||
if [ -f /etc/skyview-adsb/config.json ]; then
|
||||
chown root:skyview-adsb /etc/skyview-adsb/config.json >/dev/null 2>&1 || true
|
||||
chmod 640 /etc/skyview-adsb/config.json >/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
|
||||
|
|
@ -29,9 +29,9 @@ case "$1" in
|
|||
systemctl daemon-reload >/dev/null 2>&1 || true
|
||||
|
||||
# Check if service was previously enabled
|
||||
if systemctl is-enabled skyview >/dev/null 2>&1; then
|
||||
if systemctl is-enabled skyview-adsb >/dev/null 2>&1; then
|
||||
# Service was enabled, restart it
|
||||
systemctl restart skyview >/dev/null 2>&1 || true
|
||||
systemctl restart skyview-adsb >/dev/null 2>&1 || true
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue