File: postinst

package info (click to toggle)
ssh-import-id 5.6-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 304 kB
  • ctags: 32
  • sloc: python: 261; sh: 10; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 339 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

set -e

# Migrate from shell syntax configuration file to JSON to
# smooth migration from ssh-import-id < 3.0. Though this was
# never in Debian, let's still provide this incase some had
# installed the package from Ubuntu.
sed -i -e "/^#/d" -e "s/^URL=\"\(.*\)\"/{\"URL\": \"\1\"}/" /etc/ssh/ssh_import_id || true

#DEBHELPER#