-
Notifications
You must be signed in to change notification settings - Fork 11
/
plan.ps1
28 lines (24 loc) · 1.09 KB
/
plan.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$pkg_name="sqlwebadmin"
$pkg_origin="mwrock"
$pkg_version="0.1.0"
$pkg_maintainer="Matt Wrock"
$pkg_license=@('MS-PL')
$pkg_description="Web based SQL Server Administrator"
$pkg_deps=@("core/iis-aspnet35", "core/dsc-core", "core/sql-dmo", "core/iis-webserverrole")
$pkg_source="https://codeplexarchive.blob.core.windows.net/archive/projects/SqlWebAdmin/SqlWebAdmin.zip"
$pkg_shasum="ea888026a989951a62e5ac0f4f9819ee0662f5e4d99edeb4896a628430bb9075"
$pkg_upstream_url="https://archive.codeplex.com/?p=sqlwebadmin"
$pkg_binds_optional=@{
"database"="instance username password port"
}
function Invoke-Unpack {
Invoke-DefaultUnpack
$lastRelease = (Get-ChildItem "$HAB_CACHE_SRC_PATH/$pkg_dirname/releases" -Directory)[-1]
$release = (Get-ChildItem $lastRelease.FullName)[0]
Expand-Archive $release.FullName -DestinationPath "$HAB_CACHE_SRC_PATH/$pkg_dirname/app"
}
function Invoke-Install {
Copy-Item "$HAB_CACHE_SRC_PATH/$pkg_dirname/app/sqlwebadmin/sqlwebadmin" $pkg_prefix -recurse
Remove-Item $pkg_prefix/sqlwebadmin/Web.config
Remove-Item $pkg_prefix/sqlwebadmin/App_Code/Global.asax.cs
}